home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 December / macformat-031.iso / mac / Internet / HTML Software / HTMLedit16 / HTML.edit 1.6 < prev    next >
MacOS Executable  |  1995-05-08  |  1.4 MB  |  [APPL/HTMe]

view JSON data     |     view as text     |     open on a Mac     |     open on a PC

This file was processed as: MacOS Executable (executable/macOSExecutable).

You can browse this item here: HTML.edit 1.6

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert MacOS Executable (executable/macOSExecutable) magic Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, bundle, Fri May 5 06:38:11 1995, modified Mon May 8 07:27:58 1995, creator 'HTMe', type application, 296224 bytes "HTML.edit 1.6" , at 0x485a0 1168138 bytes resource default (weak)
99% file data default
74% TrID Macintosh Application (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% lsar MacBinary default


id metadata
keyvalue
macFileType[APPL]
macFileCreator[HTMe]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 48 54 4d 4c 2e 65 | 64 69 74 20 31 2e 36 00 |..HTML.e|dit 1.6.|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 41 50 50 4c 48 54 4d | 65 20 00 00 00 00 00 00 |.APPLHTM|e ......|
|00000050| 00 00 00 00 04 85 20 00 | 11 d3 0a ab cf b0 93 ab |...... .|........|
|00000060| d3 b0 be 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 ca fa 00 00 |........|........|
|00000080| 00 00 70 00 53 54 41 4b | ff ff ff ff 00 00 00 00 |..p.STAK|........|
|00000090| 00 00 00 0a 00 04 85 20 | 00 00 70 00 00 00 00 00 |....... |..p.....|
|000000a0| 00 00 00 00 00 00 00 04 | 00 00 0a 0e 00 00 00 0b |........|........|
|000000b0| 00 00 0b 3e 00 00 13 10 | 00 00 00 00 00 00 00 00 |...>....|........|
|000000c0| 00 00 22 63 00 00 00 00 | 00 05 00 00 10 00 00 00 |.."c....|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 02 20 80 00 01 60 80 05 | 01 60 80 05 01 60 80 05 |. ...`..|.`...`..|
|000000f0| dd 23 8b 6f 00 00 00 00 | 00 29 00 10 01 7f 02 10 |.#.o....|.)......|
|00000100| 00 00 00 00 03 00 04 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 0d 75 00 00 0c 65 | 03 38 02 80 00 00 00 00 |...u...e|.8......|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 80 00 00 00 08 00 00 00 |........|........|
|00000350| 88 00 22 00 88 00 22 00 | 88 88 22 22 88 88 22 22 |.."...".|..""..""|
|00000360| 88 aa 22 aa 88 aa 22 aa | cc aa 33 aa cc aa 33 aa |.."...".|..3...3.|
|00000370| ee aa bb aa ee aa bb aa | ee bb bb ee ee bb bb ee |........|........|
|00000380| ff bb ff ee ff bb ff ee | ff bb ff ff ff bb ff ff |........|........|
|00000390| 80 10 02 20 01 08 40 04 | ff ff ff ff ff ff ff ff |... ..@.|........|
|000003a0| 88 22 88 22 88 22 88 22 | 11 22 44 88 11 22 44 88 |."."."."|."D.."D.|
|000003b0| c4 80 0c 68 43 02 30 26 | b1 30 03 1b d8 c0 0c 8d |...hC.0&|.0......|
|000003c0| aa 00 aa 00 aa 00 aa 00 | 88 22 55 22 88 22 55 22 |........|."U"."U"|
|000003d0| 88 55 22 55 88 55 22 55 | 77 dd 77 dd 77 dd 77 dd |.U"U.U"U|w.w.w.w.|
|000003e0| 80 00 00 00 00 00 00 00 | aa 55 aa 55 aa 55 aa 55 |........|.U.U.U.U|
|000003f0| 03 84 48 30 0c 02 01 01 | 82 44 39 44 82 01 01 01 |..H0....|.D9D....|
|00000400| 88 14 22 41 88 41 22 14 | 80 80 41 3e 08 08 14 e3 |.."A.A".|..A>....|
|00000410| 22 04 8c 74 22 17 98 10 | be 80 88 08 eb 08 88 80 |"..t"...|........|
|00000420| 25 c8 32 89 64 24 4c 92 | a2 9c 41 be 2a c9 14 eb |%.2.d$L.|..A.*...|
|00000430| 40 a0 00 00 04 0a 00 00 | 80 40 20 00 02 04 08 00 |@.......|.@ .....|
|00000440| aa 00 80 00 88 00 80 00 | ff 80 80 80 80 80 80 80 |........|........|
|00000450| 08 1c 22 c1 80 01 02 04 | ff 80 80 80 ff 08 08 08 |..".....|........|
|00000460| f8 74 22 47 8f 17 22 71 | bf 00 bf bf b0 b0 b0 b0 |.t"G.."q|........|
|00000470| ff 7f be 5d a2 41 80 00 | fa f5 fa f5 a0 50 a0 50 |...].A..|.....P.P|
|00000480| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 2d 2d 20 48 54 4d 4c 2e | 65 64 69 74 20 76 31 2e |-- HTML.|edit v1.|
|00000690| 36 20 a9 31 39 39 35 20 | 62 79 20 4d 75 72 72 61 |6 .1995 |by Murra|
|000006a0| 79 20 4d 2e 20 41 6c 74 | 68 65 69 6d 2c 20 41 6c |y M. Alt|heim, Al|
|000006b0| 6c 20 52 69 67 68 74 73 | 20 52 65 73 65 72 76 65 |l Rights| Reserve|
|000006c0| 64 2e 0d 0d 6f 6e 20 48 | 54 4d 4c 52 65 74 75 72 |d...on H|TMLRetur|
|000006d0| 6e 20 63 54 61 67 0d 73 | 65 74 55 6e 64 6f 0d 67 |n cTag.s|etUndo.g|
|000006e0| 65 74 20 74 68 65 20 73 | 65 6c 65 63 74 65 64 43 |et the s|electedC|
|000006f0| 68 75 6e 6b 0d 70 75 74 | 20 77 6f 72 64 20 34 20 |hunk.put| word 4 |
|00000700| 6f 66 20 69 74 20 69 6e | 74 6f 20 45 0d 70 75 74 |of it in|to E.put|
|00000710| 20 77 6f 72 64 20 36 20 | 74 6f 20 38 20 6f 66 20 | word 6 |to 8 of |
|00000720| 69 74 20 69 6e 74 6f 20 | 73 46 6c 64 0d 64 6f 20 |it into |sFld.do |
|00000730| 22 70 75 74 20 63 68 61 | 72 20 22 26 28 45 2b 31 |"put cha|r "&(E+1|
|00000740| 29 26 22 20 74 6f 20 22 | 26 28 45 2b 34 29 26 22 |)&" to "|&(E+4)&"|
|00000750| 20 6f 66 20 22 26 73 46 | 6c 64 26 22 20 69 6e 74 | of "&sF|ld&" int|
|00000760| 6f 20 6e 65 78 74 54 61 | 67 22 0d 69 66 20 63 54 |o nextTa|g".if cT|
|00000770| 61 67 20 3d 20 22 3c 42 | 52 3e 22 20 74 68 65 6e |ag = "<B|R>" then|
|00000780| 0d 69 66 20 6c 65 6e 67 | 74 68 28 73 65 6c 65 63 |.if leng|th(selec|
|00000790| 74 65 64 54 65 78 74 29 | 20 3e 20 30 20 74 68 65 |tedText)| > 0 the|
|000007a0| 6e 20 70 75 74 20 22 3c | 42 52 3e 22 26 72 65 74 |n put "<|BR>"&ret|
|000007b0| 75 72 6e 20 61 66 74 65 | 72 20 74 68 65 20 73 65 |urn afte|r the se|
|000007c0| 6c 65 63 74 69 6f 6e 0d | 65 6c 73 65 20 74 79 70 |lection.|else typ|
|000007d0| 65 20 22 3c 42 52 3e 22 | 26 72 65 74 75 72 6e 0d |e "<BR>"|&return.|
|000007e0| 65 6c 73 65 0d 69 66 20 | 6e 65 78 74 54 61 67 20 |else.if |nextTag |
|000007f0| 3d 20 22 3c 2f 50 3e 22 | 20 74 68 65 6e 0d 64 6f |= "</P>"| then.do|
|00000800| 20 22 70 75 74 20 72 65 | 74 75 72 6e 26 22 26 71 | "put re|turn&"&q|
|00000810| 75 6f 74 65 26 22 3c 50 | 3e 22 26 63 54 61 67 26 |uote&"<P|>"&cTag&|
|00000820| 71 75 6f 74 65 26 22 20 | 61 66 74 65 72 20 63 68 |quote&" |after ch|
|00000830| 61 72 20 22 26 28 45 2b | 34 29 26 22 20 6f 66 20 |ar "&(E+|4)&" of |
|00000840| 22 26 73 46 6c 64 0d 64 | 6f 20 22 73 65 6c 65 63 |"&sFld.d|o "selec|
|00000850| 74 20 63 68 61 72 20 22 | 26 28 45 2b 39 29 26 22 |t char "|&(E+9)&"|
|00000860| 20 74 6f 20 22 26 28 45 | 2b 38 29 26 22 20 6f 66 | to "&(E|+8)&" of|
|00000870| 20 22 26 73 46 6c 64 0d | 65 6c 73 65 0d 69 66 20 | "&sFld.|else.if |
|00000880| 28 45 2d 28 77 6f 72 64 | 20 32 20 6f 66 20 69 74 |(E-(word| 2 of it|
|00000890| 29 2b 31 29 20 3d 20 30 | 20 74 68 65 6e 20 2d 2d |)+1) = 0| then --|
|000008a0| 20 65 6d 70 74 79 20 73 | 65 6c 65 63 74 69 6f 6e | empty s|election|
|000008b0| 0d 70 75 74 20 72 65 74 | 75 72 6e 26 22 3c 50 3e |.put ret|urn&"<P>|
|000008c0| 22 26 63 54 61 67 20 61 | 66 74 65 72 20 74 68 65 |"&cTag a|fter the|
|000008d0| 20 73 65 6c 65 63 74 69 | 6f 6e 0d 64 6f 20 22 73 | selecti|on.do "s|
|000008e0| 65 6c 65 63 74 20 63 68 | 61 72 20 22 26 28 45 2b |elect ch|ar "&(E+|
|000008f0| 35 29 26 22 20 74 6f 20 | 22 26 28 45 2b 34 29 26 |5)&" to |"&(E+4)&|
|00000900| 22 20 6f 66 20 22 26 73 | 46 6c 64 0d 65 6c 73 65 |" of "&s|Fld.else|
|00000910| 20 69 66 20 63 54 61 67 | 20 3d 20 22 3c 2f 50 3e | if cTag| = "</P>|
|00000920| 22 20 74 68 65 6e 20 48 | 54 4d 4c 20 22 50 61 72 |" then H|TML "Par|
|00000930| 61 67 72 61 70 68 32 22 | 0d 65 6c 73 65 20 48 54 |agraph2"|.else HT|
|00000940| 4d 4c 20 22 50 61 72 61 | 67 72 61 70 68 22 0d 65 |ML "Para|graph".e|
|00000950| 6e 64 20 69 66 0d 65 6e | 64 20 69 66 0d 65 6e 64 |nd if.en|d if.end|
|00000960| 20 48 54 4d 4c 52 65 74 | 75 72 6e 0d 0d 6f 6e 20 | HTMLRet|urn..on |
|00000970| 72 65 74 75 72 6e 49 6e | 46 69 65 6c 64 0d 67 6c |returnIn|Field.gl|
|00000980| 6f 62 61 6c 20 75 73 65 | 48 54 4d 4c 52 65 74 75 |obal use|HTMLRetu|
|00000990| 72 6e 0d 69 66 20 75 73 | 65 48 54 4d 4c 52 65 74 |rn.if us|eHTMLRet|
|000009a0| 75 72 6e 20 ad 20 54 52 | 55 45 20 74 68 65 6e 20 |urn . TR|UE then |
|000009b0| 70 61 73 73 20 72 65 74 | 75 72 6e 49 6e 46 69 65 |pass ret|urnInFie|
|000009c0| 6c 64 0d 70 75 74 20 6f | 70 74 69 6f 6e 4b 65 79 |ld.put o|ptionKey|
|000009d0| 28 29 3d 64 6f 77 6e 20 | 69 6e 74 6f 20 6f 70 6b |()=down |into opk|
|000009e0| 65 79 0d 70 75 74 20 73 | 68 69 66 74 4b 65 79 28 |ey.put s|hiftKey(|
|000009f0| 29 3d 64 6f 77 6e 20 69 | 6e 74 6f 20 73 6b 65 79 |)=down i|nto skey|
|00000a00| 0d 67 65 74 20 74 68 65 | 20 68 69 6c 69 74 65 20 |.get the| hilite |
|00000a10| 6f 66 20 63 64 20 62 74 | 6e 20 69 64 20 38 30 20 |of cd bt|n id 80 |
|00000a20| 6f 66 20 63 64 20 22 70 | 72 65 66 73 22 0d 69 66 |of cd "p|refs".if|
|00000a30| 20 6f 70 6b 65 79 20 61 | 6e 64 20 73 6b 65 79 20 | opkey a|nd skey |
|00000a40| 74 68 65 6e 0d 69 66 20 | 69 74 20 74 68 65 6e 20 |then.if |it then |
|00000a50| 48 54 4d 4c 52 65 74 75 | 72 6e 20 65 6c 73 65 20 |HTMLRetu|rn else |
|00000a60| 48 54 4d 4c 52 65 74 75 | 72 6e 20 22 3c 2f 50 3e |HTMLRetu|rn "</P>|
|00000a70| 22 0d 65 6c 73 65 20 69 | 66 20 6f 70 6b 65 79 20 |".else i|f opkey |
|00000a80| 74 68 65 6e 0d 69 66 20 | 69 74 20 74 68 65 6e 20 |then.if |it then |
|00000a90| 48 54 4d 4c 52 65 74 75 | 72 6e 20 22 3c 2f 50 3e |HTMLRetu|rn "</P>|
|00000aa0| 22 20 65 6c 73 65 20 48 | 54 4d 4c 52 65 74 75 72 |" else H|TMLRetur|
|00000ab0| 6e 0d 65 6c 73 65 20 69 | 66 20 73 6b 65 79 20 74 |n.else i|f skey t|
|00000ac0| 68 65 6e 20 48 54 4d 4c | 52 65 74 75 72 6e 20 22 |hen HTML|Return "|
|00000ad0| 3c 42 52 3e 22 0d 65 6c | 73 65 20 70 61 73 73 20 |<BR>".el|se pass |
|00000ae0| 72 65 74 75 72 6e 49 6e | 46 69 65 6c 64 0d 65 6e |returnIn|Field.en|
|00000af0| 64 20 72 65 74 75 72 6e | 49 6e 46 69 65 6c 64 0d |d return|InField.|
|00000b00| 0d 6f 6e 20 73 65 74 55 | 6e 64 6f 20 6d 6f 64 65 |.on setU|ndo mode|
|00000b10| 0d 67 6c 6f 62 61 6c 20 | 6c 61 73 74 53 65 6c 65 |.global |lastSele|
|00000b20| 63 74 2c 68 65 61 64 65 | 72 2c 62 6f 64 79 2c 66 |ct,heade|r,body,f|
|00000b30| 6f 6f 74 65 72 2c 75 6e | 64 6f 6e 65 0d 2d 2d 20 |ooter,un|done.-- |
|00000b40| 69 66 20 74 68 65 20 73 | 68 6f 72 74 20 6e 61 6d |if the s|hort nam|
|00000b50| 65 20 6f 66 20 74 68 69 | 73 20 62 67 20 ad 20 22 |e of thi|s bg . "|
|00000b60| 45 64 69 74 6f 72 22 20 | 74 68 65 6e 20 65 78 69 |Editor" |then exi|
|00000b70| 74 20 73 65 74 55 6e 64 | 6f 0d 69 66 20 6d 6f 64 |t setUnd|o.if mod|
|00000b80| 65 20 3d 20 22 72 65 73 | 74 6f 72 65 22 20 74 68 |e = "res|tore" th|
|00000b90| 65 6e 0d 69 66 20 6e 6f | 74 20 75 6e 64 6f 6e 65 |en.if no|t undone|
|00000ba0| 20 74 68 65 6e 20 65 78 | 69 74 20 73 65 74 55 6e | then ex|it setUn|
|00000bb0| 64 6f 0d 67 65 74 20 66 | 6c 64 20 22 48 65 61 64 |do.get f|ld "Head|
|00000bc0| 65 72 22 0d 70 75 74 20 | 68 65 61 64 65 72 20 69 |er".put |header i|
|00000bd0| 6e 74 6f 20 66 6c 64 20 | 22 48 65 61 64 65 72 22 |nto fld |"Header"|
|00000be0| 0d 70 75 74 20 69 74 20 | 69 6e 74 6f 20 68 65 61 |.put it |into hea|
|00000bf0| 64 65 72 0d 67 65 74 20 | 66 6c 64 20 22 42 6f 64 |der.get |fld "Bod|
|00000c00| 79 22 0d 70 75 74 20 62 | 6f 64 79 20 69 6e 74 6f |y".put b|ody into|
|00000c10| 20 66 6c 64 20 22 42 6f | 64 79 22 0d 70 75 74 20 | fld "Bo|dy".put |
|00000c20| 69 74 20 69 6e 74 6f 20 | 62 6f 64 79 0d 67 65 74 |it into |body.get|
|00000c30| 20 66 6c 64 20 22 46 6f | 6f 74 65 72 22 0d 70 75 | fld "Fo|oter".pu|
|00000c40| 74 20 66 6f 6f 74 65 72 | 20 69 6e 74 6f 20 66 6c |t footer| into fl|
|00000c50| 64 20 22 46 6f 6f 74 65 | 72 22 0d 70 75 74 20 69 |d "Foote|r".put i|
|00000c60| 74 20 69 6e 74 6f 20 66 | 6f 6f 74 65 72 0d 73 65 |t into f|ooter.se|
|00000c70| 74 49 6e 66 6f 54 65 78 | 74 0d 69 66 20 6c 61 73 |tInfoTex|t.if las|
|00000c80| 74 53 65 6c 65 63 74 20 | ad 20 22 22 20 74 68 65 |tSelect |. "" the|
|00000c90| 6e 0d 64 6f 20 22 73 65 | 6c 65 63 74 20 22 26 6c |n.do "se|lect "&l|
|00000ca0| 61 73 74 53 65 6c 65 63 | 74 0d 65 6e 64 20 69 66 |astSelec|t.end if|
|00000cb0| 0d 65 6c 73 65 20 69 66 | 20 6d 6f 64 65 20 3d 20 |.else if| mode = |
|00000cc0| 22 63 6c 65 61 72 22 20 | 74 68 65 6e 0d 70 75 74 |"clear" |then.put|
|00000cd0| 20 22 22 20 69 6e 74 6f | 20 6c 61 73 74 53 65 6c | "" into| lastSel|
|00000ce0| 65 63 74 0d 70 75 74 20 | 22 22 20 69 6e 74 6f 20 |ect.put |"" into |
|00000cf0| 68 65 61 64 65 72 0d 70 | 75 74 20 22 22 20 69 6e |header.p|ut "" in|
|00000d00| 74 6f 20 62 6f 64 79 0d | 70 75 74 20 22 22 20 69 |to body.|put "" i|
|00000d10| 6e 74 6f 20 66 6f 6f 74 | 65 72 0d 65 6c 73 65 20 |nto foot|er.else |
|00000d20| 69 66 20 6d 6f 64 65 20 | 3d 20 22 72 65 70 6f 72 |if mode |= "repor|
|00000d30| 74 22 20 74 68 65 6e 0d | 61 6e 73 77 65 72 20 22 |t" then.|answer "|
|00000d40| 55 4e 44 4f 20 43 4f 4e | 54 45 4e 54 53 3a 22 26 |UNDO CON|TENTS:"&|
|00000d50| 72 65 74 75 72 6e 26 22 | 48 65 61 64 65 72 3a 20 |return&"|Header: |
|00000d60| 22 26 6c 65 6e 67 74 68 | 28 68 65 61 64 65 72 29 |"&length|(header)|
|00000d70| 26 22 20 63 68 61 72 73 | 2e 22 26 72 65 74 75 72 |&" chars|."&retur|
|00000d80| 6e 26 22 42 6f 64 79 3a | 20 22 26 6c 65 6e 67 74 |n&"Body:| "&lengt|
|00000d90| 68 28 62 6f 64 79 29 26 | 22 20 63 68 61 72 73 2e |h(body)&|" chars.|
|00000da0| 22 26 72 65 74 75 72 6e | 26 22 46 6f 6f 74 65 72 |"&return|&"Footer|
|00000db0| 3a 20 22 26 6c 65 6e 67 | 74 68 28 66 6f 6f 74 65 |: "&leng|th(foote|
|00000dc0| 72 29 26 22 20 63 68 61 | 72 73 2e 22 0d 65 6c 73 |r)&" cha|rs.".els|
|00000dd0| 65 20 2d 2d 20 73 74 6f | 72 65 20 63 6f 6e 74 65 |e -- sto|re conte|
|00000de0| 6e 74 73 0d 70 75 74 20 | 74 68 65 20 73 65 6c 65 |nts.put |the sele|
|00000df0| 63 74 65 64 43 68 75 6e | 6b 20 69 6e 74 6f 20 6c |ctedChun|k into l|
|00000e00| 61 73 74 53 65 6c 65 63 | 74 0d 70 75 74 20 66 6c |astSelec|t.put fl|
|00000e10| 64 20 22 48 65 61 64 65 | 72 22 20 69 6e 74 6f 20 |d "Heade|r" into |
|00000e20| 68 65 61 64 65 72 0d 70 | 75 74 20 66 6c 64 20 22 |header.p|ut fld "|
|00000e30| 42 6f 64 79 22 20 69 6e | 74 6f 20 62 6f 64 79 0d |Body" in|to body.|
|00000e40| 70 75 74 20 66 6c 64 20 | 22 46 6f 6f 74 65 72 22 |put fld |"Footer"|
|00000e50| 20 69 6e 74 6f 20 66 6f | 6f 74 65 72 0d 65 6e 64 | into fo|oter.end|
|00000e60| 20 69 66 0d 70 75 74 20 | 28 6d 6f 64 65 20 ad 20 | if.put |(mode . |
|00000e70| 22 63 6c 65 61 72 22 29 | 20 69 6e 74 6f 20 75 6e |"clear")| into un|
|00000e80| 64 6f 6e 65 0d 65 6e 64 | 20 73 65 74 55 6e 64 6f |done.end| setUndo|
|00000e90| 0d 0d 2d 2d 20 66 75 6e | 63 74 69 6f 6e 73 3a 0d |..-- fun|ctions:.|
|00000ea0| 0d 66 75 6e 63 74 69 6f | 6e 20 67 65 74 41 74 74 |.functio|n getAtt|
|00000eb0| 72 4c 69 73 74 20 74 61 | 67 2c 61 74 74 72 20 2d |rList ta|g,attr -|
|00000ec0| 2d 20 72 65 74 75 72 6e | 20 6c 69 73 74 20 28 6e |- return| list (n|
|00000ed0| 61 6d 65 2c 76 61 6c 75 | 65 29 20 67 69 76 65 6e |ame,valu|e) given|
|00000ee0| 20 3c 74 61 67 3e 20 5b | 6f 72 20 76 61 6c 75 65 | <tag> [|or value|
|00000ef0| 28 61 74 74 72 69 62 29 | 5d 0d 70 75 74 20 72 65 |(attrib)|].put re|
|00000f00| 70 28 74 61 67 2c 71 75 | 6f 74 65 29 20 69 6e 74 |p(tag,qu|ote) int|
|00000f10| 6f 20 74 61 67 0d 70 75 | 74 20 31 20 69 6e 74 6f |o tag.pu|t 1 into|
|00000f20| 20 4c 20 2d 2d 20 6c 69 | 6e 65 0d 67 65 74 20 6f | L -- li|ne.get o|
|00000f30| 66 66 73 65 74 28 73 70 | 61 63 65 2c 74 61 67 29 |ffset(sp|ace,tag)|
|00000f40| 0d 64 65 6c 65 74 65 20 | 63 68 61 72 20 31 20 74 |.delete |char 1 t|
|00000f50| 6f 20 69 74 20 6f 66 20 | 74 61 67 0d 72 65 70 65 |o it of |tag.repe|
|00000f60| 61 74 0d 72 65 70 65 61 | 74 20 77 68 69 6c 65 20 |at.repea|t while |
|00000f70| 63 68 61 72 20 31 20 6f | 66 20 74 61 67 20 3d 20 |char 1 o|f tag = |
|00000f80| 73 70 61 63 65 0d 64 65 | 6c 65 74 65 20 63 68 61 |space.de|lete cha|
|00000f90| 72 20 31 20 6f 66 20 69 | 0d 65 6e 64 20 72 65 70 |r 1 of i|.end rep|
|00000fa0| 65 61 74 0d 70 75 74 20 | 6f 66 66 73 65 74 28 22 |eat.put |offset("|
|00000fb0| 3d 22 2c 74 61 67 29 20 | 69 6e 74 6f 20 65 71 0d |=",tag) |into eq.|
|00000fc0| 69 66 20 65 71 20 3d 20 | 30 20 74 68 65 6e 20 65 |if eq = |0 then e|
|00000fd0| 78 69 74 20 72 65 70 65 | 61 74 0d 70 75 74 20 74 |xit repe|at.put t|
|00000fe0| 72 69 6d 28 63 68 61 72 | 20 31 20 74 6f 20 28 65 |rim(char| 1 to (e|
|00000ff0| 71 2d 31 29 20 6f 66 20 | 74 61 67 29 20 69 6e 74 |q-1) of |tag) int|
|00001000| 6f 20 61 74 74 72 4e 61 | 6d 65 0d 70 75 74 20 61 |o attrNa|me.put a|
|00001010| 74 74 72 4e 61 6d 65 20 | 69 6e 74 6f 20 69 74 65 |ttrName |into ite|
|00001020| 6d 20 31 20 6f 66 20 6c | 69 6e 65 20 4c 20 6f 66 |m 1 of l|ine L of|
|00001030| 20 61 74 74 72 0d 64 65 | 6c 65 74 65 20 63 68 61 | attr.de|lete cha|
|00001040| 72 20 31 20 74 6f 20 65 | 71 20 6f 66 20 74 61 67 |r 1 to e|q of tag|
|00001050| 0d 72 65 70 65 61 74 20 | 77 68 69 6c 65 20 63 68 |.repeat |while ch|
|00001060| 61 72 20 31 20 6f 66 20 | 74 61 67 20 3d 20 73 70 |ar 1 of |tag = sp|
|00001070| 61 63 65 0d 64 65 6c 65 | 74 65 20 63 68 61 72 20 |ace.dele|te char |
|00001080| 31 20 6f 66 20 74 61 67 | 0d 65 6e 64 20 72 65 70 |1 of tag|.end rep|
|00001090| 65 61 74 0d 67 65 74 20 | 6f 66 66 73 65 74 28 73 |eat.get |offset(s|
|000010a0| 70 61 63 65 2c 74 61 67 | 29 0d 69 66 20 69 74 20 |pace,tag|).if it |
|000010b0| 3d 20 30 20 74 68 65 6e | 20 67 65 74 20 6c 65 6e |= 0 then| get len|
|000010c0| 67 74 68 28 74 61 67 29 | 2d 31 0d 67 65 74 20 74 |gth(tag)|-1.get t|
|000010d0| 72 69 6d 28 63 68 61 72 | 20 31 20 74 6f 20 69 74 |rim(char| 1 to it|
|000010e0| 20 6f 66 20 74 61 67 29 | 0d 69 66 20 61 74 74 72 | of tag)|.if attr|
|000010f0| 4e 61 6d 65 20 3d 20 61 | 74 74 72 20 74 68 65 6e |Name = a|ttr then|
|00001100| 20 72 65 74 75 72 6e 20 | 69 74 0d 70 75 74 20 69 | return |it.put i|
|00001110| 74 20 69 6e 74 6f 20 69 | 74 65 6d 20 32 20 6f 66 |t into i|tem 2 of|
|00001120| 20 6c 69 6e 65 20 4c 20 | 6f 66 20 61 74 74 72 0d | line L |of attr.|
|00001130| 64 65 6c 65 74 65 20 63 | 68 61 72 20 31 20 74 6f |delete c|har 1 to|
|00001140| 20 69 74 20 6f 66 20 74 | 61 67 0d 61 64 64 20 31 | it of t|ag.add 1|
|00001150| 20 74 6f 20 4c 0d 65 6e | 64 20 72 65 70 65 61 74 | to L.en|d repeat|
|00001160| 0d 72 65 74 75 72 6e 20 | 61 74 74 72 0d 65 6e 64 |.return |attr.end|
|00001170| 20 67 65 74 41 74 74 72 | 4c 69 73 74 0d 0d 66 75 | getAttr|List..fu|
|00001180| 6e 63 74 69 6f 6e 20 61 | 74 74 72 4d 61 74 63 68 |nction a|ttrMatch|
|00001190| 20 63 64 49 44 2c 74 68 | 65 54 61 67 2c 61 74 74 | cdID,th|eTag,att|
|000011a0| 72 20 2d 2d 20 72 65 74 | 75 72 6e 73 20 6c 69 73 |r -- ret|urns lis|
|000011b0| 74 20 6f 66 20 6d 61 74 | 63 68 65 64 20 61 74 74 |t of mat|ched att|
|000011c0| 72 69 62 75 74 65 73 20 | 6f 6e 20 74 68 65 54 61 |ributes |on theTa|
|000011d0| 67 0d 69 66 20 63 64 49 | 44 20 3d 20 22 22 20 74 |g.if cdI|D = "" t|
|000011e0| 68 65 6e 20 72 65 74 75 | 72 6e 20 22 22 0d 70 75 |hen retu|rn "".pu|
|000011f0| 74 20 22 22 20 69 6e 74 | 6f 20 69 6e 64 65 78 0d |t "" int|o index.|
|00001200| 73 65 74 20 63 75 72 73 | 6f 72 20 74 6f 20 77 61 |set curs|or to wa|
|00001210| 74 63 68 0d 72 65 70 65 | 61 74 20 77 69 74 68 20 |tch.repe|at with |
|00001220| 69 20 3d 20 31 20 74 6f | 20 33 0d 67 65 74 20 66 |i = 1 to| 3.get f|
|00001230| 6c 64 20 69 64 20 69 20 | 6f 66 20 63 64 20 69 64 |ld id i |of cd id|
|00001240| 20 63 64 49 44 0d 69 66 | 20 72 65 70 28 69 74 2c | cdID.if| rep(it,|
|00001250| 72 65 74 75 72 6e 2c 22 | 22 29 20 3d 20 22 22 20 |return,"|") = "" |
|00001260| 74 68 65 6e 20 6e 65 78 | 74 20 72 65 70 65 61 74 |then nex|t repeat|
|00001270| 0d 72 65 70 65 61 74 0d | 70 75 74 20 6f 66 66 73 |.repeat.|put offs|
|00001280| 65 74 28 74 68 65 54 61 | 67 2c 69 74 29 20 69 6e |et(theTa|g,it) in|
|00001290| 74 6f 20 73 54 61 67 0d | 69 66 20 73 54 61 67 20 |to sTag.|if sTag |
|000012a0| 3d 20 30 20 74 68 65 6e | 20 65 78 69 74 20 72 65 |= 0 then| exit re|
|000012b0| 70 65 61 74 0d 65 6c 73 | 65 0d 64 65 6c 65 74 65 |peat.els|e.delete|
|000012c0| 20 63 68 61 72 20 31 20 | 74 6f 20 28 73 54 61 67 | char 1 |to (sTag|
|000012d0| 2d 31 29 20 6f 66 20 69 | 74 0d 70 75 74 20 6f 66 |-1) of i|t.put of|
|000012e0| 66 73 65 74 28 22 3e 22 | 2c 69 74 29 20 69 6e 74 |fset(">"|,it) int|
|000012f0| 6f 20 65 54 61 67 0d 70 | 75 74 20 6e 65 78 74 49 |o eTag.p|ut nextI|
|00001300| 6e 73 74 61 6e 63 65 28 | 69 74 2c 22 3c 22 2c 32 |nstance(|it,"<",2|
|00001310| 29 20 69 6e 74 6f 20 6e | 54 61 67 0d 69 66 20 65 |) into n|Tag.if e|
|00001320| 54 61 67 20 3d 20 30 20 | 6f 72 20 28 6e 54 61 67 |Tag = 0 |or (nTag|
|00001330| 20 3c 20 65 54 61 67 20 | 61 6e 64 20 6e 54 61 67 | < eTag |and nTag|
|00001340| 20 ad 20 22 22 29 0d 74 | 68 65 6e 20 70 72 6f 63 | . "").t|hen proc|
|00001350| 45 72 72 6f 72 20 22 45 | 52 52 4f 52 3a 22 26 72 |Error "E|RROR:"&r|
|00001360| 65 74 75 72 6e 26 22 55 | 6e 63 6c 6f 73 65 64 20 |eturn&"U|nclosed |
|00001370| 6f 72 20 6f 76 65 72 6c | 61 70 70 69 6e 67 20 74 |or overl|apping t|
|00001380| 61 67 28 73 29 20 69 6e | 20 64 6f 63 75 6d 65 6e |ag(s) in| documen|
|00001390| 74 2e 20 55 6e 61 62 6c | 65 20 74 6f 20 70 72 6f |t. Unabl|e to pro|
|000013a0| 63 65 65 64 2e 22 26 72 | 65 74 75 72 6e 26 22 d2 |ceed."&r|eturn&".|
|000013b0| 22 26 63 68 61 72 20 31 | 20 74 6f 20 65 54 61 67 |"&char 1| to eTag|
|000013c0| 20 6f 66 20 69 74 26 22 | d3 22 0d 70 75 74 20 63 | of it&"|.".put c|
|000013d0| 68 61 72 20 31 20 74 6f | 20 65 54 61 67 20 6f 66 |har 1 to| eTag of|
|000013e0| 20 69 74 20 69 6e 74 6f | 20 74 61 67 0d 64 65 6c | it into| tag.del|
|000013f0| 65 74 65 20 63 68 61 72 | 20 31 20 74 6f 20 65 54 |ete char| 1 to eT|
|00001400| 61 67 20 6f 66 20 69 74 | 0d 69 66 20 61 74 74 72 |ag of it|.if attr|
|00001410| 20 69 73 20 69 6e 20 74 | 61 67 20 74 68 65 6e 0d | is in t|ag then.|
|00001420| 70 75 74 20 67 65 74 41 | 74 74 72 4c 69 73 74 28 |put getA|ttrList(|
|00001430| 74 61 67 2c 22 69 64 22 | 29 20 69 6e 74 6f 20 6e |tag,"id"|) into n|
|00001440| 61 6d 65 56 61 6c 75 65 | 0d 69 66 20 6e 61 6d 65 |ameValue|.if name|
|00001450| 56 61 6c 75 65 20 ad 20 | 22 22 20 74 68 65 6e 20 |Value . |"" then |
|00001460| 70 75 74 20 6e 61 6d 65 | 56 61 6c 75 65 26 72 65 |put name|Value&re|
|00001470| 74 75 72 6e 20 61 66 74 | 65 72 20 69 6e 64 65 78 |turn aft|er index|
|00001480| 0d 65 6e 64 20 69 66 0d | 65 6e 64 20 69 66 0d 65 |.end if.|end if.e|
|00001490| 6e 64 20 72 65 70 65 61 | 74 0d 65 6e 64 20 72 65 |nd repea|t.end re|
|000014a0| 70 65 61 74 0d 72 65 74 | 75 72 6e 20 69 6e 64 65 |peat.ret|urn inde|
|000014b0| 78 0d 65 6e 64 20 61 74 | 74 72 4d 61 74 63 68 0d |x.end at|trMatch.|
|000014c0| 0d 66 75 6e 63 74 69 6f | 6e 20 62 67 49 44 20 63 |.functio|n bgID c|
|000014d0| 64 49 44 0d 6c 6f 63 6b | 20 73 63 72 65 65 6e 0d |dID.lock| screen.|
|000014e0| 6c 6f 63 6b 20 6d 65 73 | 73 61 67 65 73 0d 70 75 |lock mes|sages.pu|
|000014f0| 73 68 20 63 64 0d 67 6f | 20 63 64 20 69 64 20 63 |sh cd.go| cd id c|
|00001500| 64 49 44 0d 69 66 20 74 | 68 65 20 72 65 73 75 6c |dID.if t|he resul|
|00001510| 74 20 3d 20 22 22 20 74 | 68 65 6e 20 67 65 74 20 |t = "" t|hen get |
|00001520| 74 68 65 20 69 64 20 6f | 66 20 74 68 69 73 20 62 |the id o|f this b|
|00001530| 67 20 65 6c 73 65 20 67 | 65 74 20 22 22 0d 70 6f |g else g|et "".po|
|00001540| 70 20 63 64 0d 75 6e 6c | 6f 63 6b 20 73 63 72 65 |p cd.unl|ock scre|
|00001550| 65 6e 0d 72 65 74 75 72 | 6e 20 69 74 0d 65 6e 64 |en.retur|n it.end|
|00001560| 20 62 67 49 44 0d 0d 66 | 75 6e 63 74 69 6f 6e 20 | bgID..f|unction |
|00001570| 64 6f 63 53 69 7a 65 20 | 49 44 4c 69 73 74 0d 69 |docSize |IDList.i|
|00001580| 66 20 49 44 4c 69 73 74 | 20 3d 20 22 22 20 74 68 |f IDList| = "" th|
|00001590| 65 6e 20 70 75 74 20 74 | 68 65 20 73 68 6f 72 74 |en put t|he short|
|000015a0| 20 69 64 20 6f 66 20 74 | 68 69 73 20 63 64 20 69 | id of t|his cd i|
|000015b0| 6e 74 6f 20 49 44 4c 69 | 73 74 0d 67 65 74 20 30 |nto IDLi|st.get 0|
|000015c0| 0d 72 65 70 65 61 74 20 | 77 69 74 68 20 69 20 3d |.repeat |with i =|
|000015d0| 20 31 20 74 6f 20 6e 75 | 6d 62 65 72 28 69 74 65 | 1 to nu|mber(ite|
|000015e0| 6d 73 20 69 6e 20 49 44 | 4c 69 73 74 29 0d 70 75 |ms in ID|List).pu|
|000015f0| 74 20 69 74 65 6d 20 69 | 20 6f 66 20 49 44 4c 69 |t item i| of IDLi|
|00001600| 73 74 20 69 6e 74 6f 20 | 74 68 65 49 44 0d 61 64 |st into |theID.ad|
|00001610| 64 20 6c 65 6e 67 74 68 | 28 66 6c 64 20 22 68 65 |d length|(fld "he|
|00001620| 61 64 65 72 22 20 6f 66 | 20 63 64 20 69 64 20 74 |ader" of| cd id t|
|00001630| 68 65 49 44 29 2b 6c 65 | 6e 67 74 68 28 66 6c 64 |heID)+le|ngth(fld|
|00001640| 20 22 62 6f 64 79 22 20 | 6f 66 20 63 64 20 69 64 | "body" |of cd id|
|00001650| 20 74 68 65 49 44 29 2b | 6c 65 6e 67 74 68 28 66 | theID)+|length(f|
|00001660| 6c 64 20 22 66 6f 6f 74 | 65 72 22 20 6f 66 20 63 |ld "foot|er" of c|
|00001670| 64 20 69 64 20 74 68 65 | 49 44 29 20 74 6f 20 69 |d id the|ID) to i|
|00001680| 74 0d 65 6e 64 20 72 65 | 70 65 61 74 0d 72 65 74 |t.end re|peat.ret|
|00001690| 75 72 6e 20 69 74 0d 65 | 6e 64 20 64 6f 63 53 69 |urn it.e|nd docSi|
|000016a0| 7a 65 0d 0d 66 75 6e 63 | 74 69 6f 6e 20 64 6f 63 |ze..func|tion doc|
|000016b0| 43 6f 75 6e 74 0d 72 65 | 74 75 72 6e 20 6e 75 6d |Count.re|turn num|
|000016c0| 62 65 72 28 63 64 73 20 | 69 6e 20 62 67 20 22 45 |ber(cds |in bg "E|
|000016d0| 64 69 74 6f 72 22 29 0d | 65 6e 64 20 64 6f 63 43 |ditor").|end docC|
|000016e0| 6f 75 6e 74 0d 0d 66 75 | 6e 63 74 69 6f 6e 20 67 |ount..fu|nction g|
|000016f0| 72 65 70 43 6f 6e 76 65 | 72 74 20 69 0d 67 65 74 |repConve|rt i.get|
|00001700| 20 72 65 70 28 69 2c 22 | 5c 6c 22 2c 6e 75 6d 54 | rep(i,"|\l",numT|
|00001710| 6f 43 68 61 72 28 31 30 | 29 29 0d 67 65 74 20 72 |oChar(10|)).get r|
|00001720| 65 70 28 69 74 2c 22 5c | 6e 22 2c 72 65 74 75 72 |ep(it,"\|n",retur|
|00001730| 6e 26 6e 75 6d 54 6f 43 | 68 61 72 28 31 30 29 29 |n&numToC|har(10))|
|00001740| 0d 67 65 74 20 72 65 70 | 28 69 74 2c 22 5c 72 22 |.get rep|(it,"\r"|
|00001750| 2c 72 65 74 75 72 6e 29 | 0d 67 65 74 20 72 65 70 |,return)|.get rep|
|00001760| 28 69 74 2c 22 5c 73 22 | 2c 73 70 61 63 65 29 0d |(it,"\s"|,space).|
|00001770| 67 65 74 20 72 65 70 28 | 69 74 2c 22 5c 74 22 2c |get rep(|it,"\t",|
|00001780| 74 61 62 29 0d 72 65 74 | 75 72 6e 20 69 74 0d 65 |tab).ret|urn it.e|
|00001790| 6e 64 20 67 72 65 70 43 | 6f 6e 76 65 72 74 0d 0d |nd grepC|onvert..|
|000017a0| 66 75 6e 63 74 69 6f 6e | 20 64 65 6c 65 74 65 48 |function| deleteH|
|000017b0| 54 4d 4c 20 65 6e 64 43 | 6f 64 65 2c 66 6c 64 49 |TML endC|ode,fldI|
|000017c0| 44 2c 63 6f 6d 70 6c 65 | 78 20 2d 2d 20 65 78 2e |D,comple|x -- ex.|
|000017d0| 20 28 22 3c 42 4f 44 59 | 3e 22 2c 31 32 33 29 0d | ("<BODY|>",123).|
|000017e0| 2d 2d 20 67 69 76 65 6e | 20 3c 58 3e 2c 20 64 65 |-- given| <X>, de|
|000017f0| 6c 65 74 65 20 61 6c 6c | 20 6f 63 63 20 69 6e 20 |lete all| occ in |
|00001800| 48 42 46 20 6f 66 20 3c | 58 3e 20 26 20 3c 2f 58 |HBF of <|X> & </X|
|00001810| 3e 2c 20 72 65 74 75 72 | 6e 73 20 54 52 55 45 20 |>, retur|ns TRUE |
|00001820| 69 66 20 63 68 61 6e 67 | 65 64 0d 70 75 74 20 28 |if chang|ed.put (|
|00001830| 63 6f 6d 70 6c 65 78 20 | 3d 20 54 52 55 45 29 20 |complex |= TRUE) |
|00001840| 69 6e 74 6f 20 63 6f 6d | 70 6c 65 78 54 61 67 0d |into com|plexTag.|
|00001850| 70 75 74 20 46 41 4c 53 | 45 20 69 6e 74 6f 20 66 |put FALS|E into f|
|00001860| 6f 75 6e 64 48 54 4d 4c | 0d 70 75 74 20 65 6e 64 |oundHTML|.put end|
|00001870| 43 6f 64 65 20 69 6e 74 | 6f 20 73 74 61 72 74 43 |Code int|o startC|
|00001880| 6f 64 65 0d 70 75 74 20 | 22 2f 22 20 61 66 74 65 |ode.put |"/" afte|
|00001890| 72 20 63 68 61 72 20 31 | 20 6f 66 20 65 6e 64 43 |r char 1| of endC|
|000018a0| 6f 64 65 0d 72 65 70 65 | 61 74 20 77 69 74 68 20 |ode.repe|at with |
|000018b0| 6b 20 3d 20 31 20 74 6f | 20 6c 65 6e 67 74 68 28 |k = 1 to| length(|
|000018c0| 66 6c 64 49 44 29 0d 70 | 75 74 20 63 68 61 72 20 |fldID).p|ut char |
|000018d0| 6b 20 6f 66 20 66 6c 64 | 49 44 20 69 6e 74 6f 20 |k of fld|ID into |
|000018e0| 69 0d 67 65 74 20 66 6c | 64 20 69 64 20 69 0d 69 |i.get fl|d id i.i|
|000018f0| 66 20 73 74 61 72 74 43 | 6f 64 65 20 69 73 20 69 |f startC|ode is i|
|00001900| 6e 20 69 74 20 6f 72 20 | 65 6e 64 43 6f 64 65 20 |n it or |endCode |
|00001910| 69 73 20 69 6e 20 69 74 | 20 74 68 65 6e 20 70 75 |is in it| then pu|
|00001920| 74 20 54 52 55 45 20 69 | 6e 74 6f 20 66 6f 75 6e |t TRUE i|nto foun|
|00001930| 64 48 54 4d 4c 0d 69 66 | 20 63 6f 6d 70 6c 65 78 |dHTML.if| complex|
|00001940| 54 61 67 20 74 68 65 6e | 0d 72 65 70 65 61 74 20 |Tag then|.repeat |
|00001950| 77 68 69 6c 65 20 73 74 | 61 72 74 43 6f 64 65 20 |while st|artCode |
|00001960| 69 73 20 69 6e 20 69 74 | 20 2d 2d 20 73 74 61 72 |is in it| -- star|
|00001970| 74 54 61 67 0d 70 75 74 | 20 6f 66 66 73 65 74 28 |tTag.put| offset(|
|00001980| 73 74 61 72 74 43 6f 64 | 65 2c 69 74 29 20 69 6e |startCod|e,it) in|
|00001990| 74 6f 20 73 74 61 72 74 | 54 61 67 0d 70 75 74 20 |to start|Tag.put |
|000019a0| 6e 65 78 74 49 6e 73 74 | 61 6e 63 65 28 69 74 2c |nextInst|ance(it,|
|000019b0| 22 3e 22 2c 73 74 61 72 | 74 54 61 67 29 20 69 6e |">",star|tTag) in|
|000019c0| 74 6f 20 65 6e 64 54 61 | 67 0d 69 66 20 73 74 61 |to endTa|g.if sta|
|000019d0| 72 74 54 61 67 20 ad 20 | 30 20 61 6e 64 20 65 6e |rtTag . |0 and en|
|000019e0| 64 54 61 67 20 ad 20 30 | 20 74 68 65 6e 0d 69 66 |dTag . 0| then.if|
|000019f0| 20 63 68 61 72 20 28 65 | 6e 64 54 61 67 20 2b 20 | char (e|ndTag + |
|00001a00| 31 29 20 6f 66 20 69 74 | 20 3d 20 72 65 74 75 72 |1) of it| = retur|
|00001a10| 6e 20 74 68 65 6e 20 64 | 65 6c 65 74 65 20 63 68 |n then d|elete ch|
|00001a20| 61 72 20 28 65 6e 64 54 | 61 67 20 2b 20 31 29 20 |ar (endT|ag + 1) |
|00001a30| 6f 66 20 69 74 0d 64 65 | 6c 65 74 65 20 63 68 61 |of it.de|lete cha|
|00001a40| 72 20 73 74 61 72 74 54 | 61 67 20 74 6f 20 65 6e |r startT|ag to en|
|00001a50| 64 54 61 67 20 6f 66 20 | 69 74 0d 65 6e 64 20 69 |dTag of |it.end i|
|00001a60| 66 0d 65 6e 64 20 72 65 | 70 65 61 74 0d 65 6c 73 |f.end re|peat.els|
|00001a70| 65 0d 67 65 74 20 72 65 | 70 28 69 74 2c 73 74 61 |e.get re|p(it,sta|
|00001a80| 72 74 43 6f 64 65 29 0d | 67 65 74 20 72 65 70 28 |rtCode).|get rep(|
|00001a90| 69 74 2c 63 61 73 65 28 | 32 2c 73 74 61 72 74 43 |it,case(|2,startC|
|00001aa0| 6f 64 65 29 29 20 2d 2d | 20 6c 63 0d 67 65 74 20 |ode)) --| lc.get |
|00001ab0| 72 65 70 28 69 74 2c 65 | 6e 64 43 6f 64 65 29 0d |rep(it,e|ndCode).|
|00001ac0| 67 65 74 20 72 65 70 28 | 69 74 2c 63 61 73 65 28 |get rep(|it,case(|
|00001ad0| 32 2c 65 6e 64 43 6f 64 | 65 29 29 20 2d 2d 20 6c |2,endCod|e)) -- l|
|00001ae0| 63 0d 65 6e 64 20 69 66 | 0d 70 75 74 20 69 74 20 |c.end if|.put it |
|00001af0| 69 6e 74 6f 20 66 6c 64 | 20 69 64 20 69 0d 65 6e |into fld| id i.en|
|00001b00| 64 20 72 65 70 65 61 74 | 0d 72 65 74 75 72 6e 20 |d repeat|.return |
|00001b10| 66 6f 75 6e 64 48 54 4d | 4c 0d 65 6e 64 20 64 65 |foundHTM|L.end de|
|00001b20| 6c 65 74 65 48 54 4d 4c | 0d 0d 66 75 6e 63 74 69 |leteHTML|..functi|
|00001b30| 6f 6e 20 63 75 74 50 72 | 6f 6c 6f 67 75 65 20 2d |on cutPr|ologue -|
|00001b40| 2d 20 72 65 74 75 72 6e | 73 20 70 72 6f 6c 6f 67 |- return|s prolog|
|00001b50| 75 65 20 61 66 74 65 72 | 20 72 65 6d 6f 76 69 6e |ue after| removin|
|00001b60| 67 20 69 74 0d 67 6c 6f | 62 61 6c 20 65 72 72 6f |g it.glo|bal erro|
|00001b70| 72 31 2c 65 72 72 6f 72 | 32 0d 67 65 74 20 22 22 |r1,error|2.get ""|
|00001b80| 0d 72 65 70 65 61 74 20 | 77 69 74 68 20 69 20 3d |.repeat |with i =|
|00001b90| 20 33 20 64 6f 77 6e 20 | 74 6f 20 31 0d 69 66 20 | 3 down |to 1.if |
|00001ba0| 22 3c 21 44 4f 43 54 59 | 50 45 22 20 69 73 20 69 |"<!DOCTY|PE" is i|
|00001bb0| 6e 20 66 6c 64 20 69 64 | 20 69 20 74 68 65 6e 20 |n fld id| i then |
|00001bc0| 2d 2d 20 6d 6f 76 65 20 | 70 72 6f 6c 6f 67 75 65 |-- move |prologue|
|00001bd0| 0d 69 66 20 69 20 ad 20 | 31 20 61 6e 64 20 22 3c |.if i . |1 and "<|
|00001be0| 21 44 4f 43 54 59 50 45 | 22 20 69 73 20 69 6e 20 |!DOCTYPE|" is in |
|00001bf0| 66 6c 64 20 69 64 20 31 | 20 74 68 65 6e 20 70 72 |fld id 1| then pr|
|00001c00| 6f 63 45 72 72 6f 72 20 | 65 72 72 6f 72 31 26 22 |ocError |error1&"|
|00001c10| 54 68 65 72 65 20 61 72 | 65 20 6d 6f 72 65 20 74 |There ar|e more t|
|00001c20| 68 61 6e 20 6f 6e 65 20 | 3c 21 44 4f 43 54 59 50 |han one |<!DOCTYP|
|00001c30| 45 3e 20 74 61 67 73 20 | 69 6e 20 74 68 69 73 20 |E> tags |in this |
|00001c40| 64 6f 63 75 6d 65 6e 74 | 2e 22 26 65 72 72 6f 72 |document|."&error|
|00001c50| 32 0d 70 75 74 20 6f 66 | 66 73 65 74 28 22 3c 21 |2.put of|fset("<!|
|00001c60| 44 4f 43 54 59 50 45 22 | 2c 66 6c 64 20 69 64 20 |DOCTYPE"|,fld id |
|00001c70| 69 29 20 69 6e 74 6f 20 | 73 74 61 72 74 54 61 67 |i) into |startTag|
|00001c80| 0d 70 75 74 20 6e 65 78 | 74 49 6e 73 74 61 6e 63 |.put nex|tInstanc|
|00001c90| 65 28 66 6c 64 20 69 64 | 20 69 2c 22 3e 22 2c 73 |e(fld id| i,">",s|
|00001ca0| 74 61 72 74 54 61 67 29 | 20 69 6e 74 6f 20 65 6e |tartTag)| into en|
|00001cb0| 64 54 61 67 0d 69 66 20 | 73 74 61 72 74 54 61 67 |dTag.if |startTag|
|00001cc0| 20 ad 20 30 20 61 6e 64 | 20 65 6e 64 54 61 67 20 | . 0 and| endTag |
|00001cd0| ad 20 30 20 74 68 65 6e | 0d 67 65 74 20 63 68 61 |. 0 then|.get cha|
|00001ce0| 72 20 73 74 61 72 74 54 | 61 67 20 74 6f 20 65 6e |r startT|ag to en|
|00001cf0| 64 54 61 67 20 6f 66 20 | 66 6c 64 20 69 64 20 69 |dTag of |fld id i|
|00001d00| 0d 69 66 20 63 68 61 72 | 20 28 65 6e 64 54 61 67 |.if char| (endTag|
|00001d10| 20 2b 20 31 29 20 6f 66 | 20 66 6c 64 20 69 64 20 | + 1) of| fld id |
|00001d20| 69 20 3d 20 72 65 74 75 | 72 6e 20 74 68 65 6e 0d |i = retu|rn then.|
|00001d30| 70 75 74 20 72 65 74 75 | 72 6e 20 61 66 74 65 72 |put retu|rn after|
|00001d40| 20 69 74 0d 64 65 6c 65 | 74 65 20 63 68 61 72 20 | it.dele|te char |
|00001d50| 28 65 6e 64 54 61 67 20 | 2b 20 31 29 20 6f 66 20 |(endTag |+ 1) of |
|00001d60| 66 6c 64 20 69 64 20 69 | 0d 65 6e 64 20 69 66 0d |fld id i|.end if.|
|00001d70| 64 65 6c 65 74 65 20 63 | 68 61 72 20 73 74 61 72 |delete c|har star|
|00001d80| 74 54 61 67 20 74 6f 20 | 65 6e 64 54 61 67 20 6f |tTag to |endTag o|
|00001d90| 66 20 66 6c 64 20 69 64 | 20 69 0d 65 6e 64 20 69 |f fld id| i.end i|
|00001da0| 66 0d 65 6e 64 20 69 66 | 0d 65 6e 64 20 72 65 70 |f.end if|.end rep|
|00001db0| 65 61 74 0d 72 65 74 75 | 72 6e 20 69 74 0d 65 6e |eat.retu|rn it.en|
|00001dc0| 64 20 63 75 74 50 72 6f | 6c 6f 67 75 65 0d 0d 66 |d cutPro|logue..f|
|00001dd0| 75 6e 63 74 69 6f 6e 20 | 63 61 72 64 4c 69 73 74 |unction |cardList|
|00001de0| 20 62 67 49 44 2c 70 72 | 65 66 69 78 0d 70 75 74 | bgID,pr|efix.put|
|00001df0| 20 22 22 20 69 6e 74 6f | 20 69 64 78 0d 72 65 70 | "" into| idx.rep|
|00001e00| 65 61 74 20 77 69 74 68 | 20 69 20 3d 20 31 20 74 |eat with| i = 1 t|
|00001e10| 6f 20 6e 75 6d 62 65 72 | 28 63 64 73 20 69 6e 20 |o number|(cds in |
|00001e20| 62 67 20 69 64 20 62 67 | 49 44 29 0d 69 66 20 70 |bg id bg|ID).if p|
|00001e30| 72 65 66 69 78 20 ad 20 | 22 22 20 74 68 65 6e 20 |refix . |"" then |
|00001e40| 67 65 74 20 70 72 65 66 | 69 78 26 69 26 22 3a 20 |get pref|ix&i&": |
|00001e50| 22 20 65 6c 73 65 20 67 | 65 74 20 22 22 0d 70 75 |" else g|et "".pu|
|00001e60| 74 20 69 74 26 28 66 6c | 64 20 22 74 69 74 6c 65 |t it&(fl|d "title|
|00001e70| 22 20 6f 66 20 63 64 20 | 69 20 6f 66 20 62 67 20 |" of cd |i of bg |
|00001e80| 69 64 20 62 67 49 44 29 | 20 26 20 72 65 74 75 72 |id bgID)| & retur|
|00001e90| 6e 20 61 66 74 65 72 20 | 69 64 78 0d 65 6e 64 20 |n after |idx.end |
|00001ea0| 72 65 70 65 61 74 0d 72 | 65 74 75 72 6e 20 69 64 |repeat.r|eturn id|
|00001eb0| 78 0d 65 6e 64 20 63 61 | 72 64 4c 69 73 74 0d 0d |x.end ca|rdList..|
|00001ec0| 66 75 6e 63 74 69 6f 6e | 20 64 6f 63 54 69 74 6c |function| docTitl|
|00001ed0| 65 20 74 68 65 49 44 0d | 69 66 20 74 68 65 49 44 |e theID.|if theID|
|00001ee0| 20 3d 20 22 22 20 74 68 | 65 6e 0d 69 6e 64 65 78 | = "" th|en.index|
|00001ef0| 53 74 61 63 6b 0d 61 6e | 73 77 65 72 20 22 45 52 |Stack.an|swer "ER|
|00001f00| 52 4f 52 20 69 6e 20 49 | 6e 64 65 78 2e 20 50 6c |ROR in I|ndex. Pl|
|00001f10| 65 61 73 65 20 74 72 79 | 20 61 67 61 69 6e 2e 22 |ease try| again."|
|00001f20| 0d 65 78 69 74 48 43 0d | 65 6e 64 20 69 66 0d 70 |.exitHC.|end if.p|
|00001f30| 75 74 20 28 66 6c 64 20 | 69 64 20 31 20 6f 66 20 |ut (fld |id 1 of |
|00001f40| 63 64 20 69 64 20 74 68 | 65 49 44 29 20 26 20 28 |cd id th|eID) & (|
|00001f50| 66 6c 64 20 69 64 20 32 | 20 6f 66 20 63 64 20 69 |fld id 2| of cd i|
|00001f60| 64 20 74 68 65 49 44 29 | 20 26 20 28 66 6c 64 20 |d theID)| & (fld |
|00001f70| 69 64 20 33 20 6f 66 20 | 63 64 20 69 64 20 74 68 |id 3 of |cd id th|
|00001f80| 65 49 44 29 20 69 6e 74 | 6f 20 74 68 65 54 65 78 |eID) int|o theTex|
|00001f90| 74 0d 70 75 74 20 6f 66 | 66 73 65 74 28 22 3c 54 |t.put of|fset("<T|
|00001fa0| 49 54 4c 45 3e 22 2c 74 | 68 65 54 65 78 74 29 20 |ITLE>",t|heText) |
|00001fb0| 69 6e 74 6f 20 73 74 61 | 72 74 54 69 74 6c 65 0d |into sta|rtTitle.|
|00001fc0| 70 75 74 20 6f 66 66 73 | 65 74 28 22 3c 2f 54 49 |put offs|et("</TI|
|00001fd0| 54 4c 45 3e 22 2c 74 68 | 65 54 65 78 74 29 20 69 |TLE>",th|eText) i|
|00001fe0| 6e 74 6f 20 65 6e 64 54 | 69 74 6c 65 0d 69 66 20 |nto endT|itle.if |
|00001ff0| 73 74 61 72 74 54 69 74 | 6c 65 20 ad 20 30 20 61 |startTit|le . 0 a|
|00002000| 6e 64 20 65 6e 64 54 69 | 74 6c 65 20 ad 20 30 20 |nd endTi|tle . 0 |
|00002010| 74 68 65 6e 0d 72 65 74 | 75 72 6e 20 28 63 68 61 |then.ret|urn (cha|
|00002020| 72 20 28 73 74 61 72 74 | 54 69 74 6c 65 2b 37 29 |r (start|Title+7)|
|00002030| 20 74 6f 20 28 65 6e 64 | 54 69 74 6c 65 2d 31 29 | to (end|Title-1)|
|00002040| 20 6f 66 20 74 68 65 54 | 65 78 74 29 0d 65 6c 73 | of theT|ext).els|
|00002050| 65 20 72 65 74 75 72 6e | 20 22 23 23 23 23 20 75 |e return| "#### u|
|00002060| 6e 74 69 74 6c 65 64 3a | 20 22 26 71 75 6f 74 65 |ntitled:| "&quote|
|00002070| 26 28 66 6c 64 20 69 64 | 20 31 35 20 6f 66 20 63 |&(fld id| 15 of c|
|00002080| 64 20 69 64 20 74 68 65 | 49 44 29 26 71 75 6f 74 |d id the|ID)&quot|
|00002090| 65 26 22 20 23 23 23 23 | 22 0d 65 6e 64 20 64 6f |e&" ####|".end do|
|000020a0| 63 54 69 74 6c 65 0d 0d | 66 75 6e 63 74 69 6f 6e |cTitle..|function|
|000020b0| 20 74 72 69 6d 20 74 78 | 74 0d 72 65 70 65 61 74 | trim tx|t.repeat|
|000020c0| 0d 69 66 20 6c 61 73 74 | 20 63 68 61 72 20 6f 66 |.if last| char of|
|000020d0| 20 74 78 74 20 3d 20 72 | 65 74 75 72 6e 20 6f 72 | txt = r|eturn or|
|000020e0| 20 6c 61 73 74 20 63 68 | 61 72 20 6f 66 20 74 78 | last ch|ar of tx|
|000020f0| 74 20 3d 20 73 70 61 63 | 65 20 74 68 65 6e 20 64 |t = spac|e then d|
|00002100| 65 6c 65 74 65 20 6c 61 | 73 74 20 63 68 61 72 20 |elete la|st char |
|00002110| 6f 66 20 74 78 74 0d 65 | 6c 73 65 20 72 65 74 75 |of txt.e|lse retu|
|00002120| 72 6e 20 74 78 74 0d 65 | 6e 64 20 72 65 70 65 61 |rn txt.e|nd repea|
|00002130| 74 0d 65 6e 64 20 74 72 | 69 6d 0d 0d 66 75 6e 63 |t.end tr|im..func|
|00002140| 74 69 6f 6e 20 67 58 20 | 78 4f 66 66 0d 67 65 74 |tion gX |xOff.get|
|00002150| 20 67 65 74 4d 6f 64 65 | 28 29 0d 69 66 20 6e 75 | getMode|().if nu|
|00002160| 6d 62 65 72 20 6f 66 20 | 6c 69 6e 65 73 20 69 6e |mber of |lines in|
|00002170| 20 69 74 20 3d 20 31 20 | 74 68 65 6e 0d 72 65 74 | it = 1 |then.ret|
|00002180| 75 72 6e 20 74 72 75 6e | 63 28 69 74 65 6d 20 36 |urn trun|c(item 6|
|00002190| 20 6f 66 20 69 74 2f 32 | 20 2d 20 69 74 65 6d 20 | of it/2| - item |
|000021a0| 31 20 6f 66 20 74 68 65 | 20 6c 6f 63 20 6f 66 20 |1 of the| loc of |
|000021b0| 63 64 20 77 69 6e 64 6f | 77 29 20 2d 20 78 4f 66 |cd windo|w) - xOf|
|000021c0| 66 0d 65 6c 73 65 20 69 | 66 20 6e 75 6d 62 65 72 |f.else i|f number|
|000021d0| 20 6f 66 20 6c 69 6e 65 | 73 20 69 6e 20 69 74 20 | of line|s in it |
|000021e0| 3d 20 32 20 74 68 65 6e | 20 2d 2d 20 32 20 6d 6f |= 2 then| -- 2 mo|
|000021f0| 6e 69 74 6f 72 73 0d 69 | 66 20 74 72 75 65 0d 74 |nitors.i|f true.t|
|00002200| 68 65 6e 20 72 65 74 75 | 72 6e 20 74 72 75 6e 63 |hen retu|rn trunc|
|00002210| 28 69 74 65 6d 20 36 20 | 6f 66 20 6c 69 6e 65 20 |(item 6 |of line |
|00002220| 31 20 6f 66 20 69 74 2f | 32 20 2d 20 69 74 65 6d |1 of it/|2 - item|
|00002230| 20 31 20 6f 66 20 74 68 | 65 20 6c 6f 63 20 6f 66 | 1 of th|e loc of|
|00002240| 20 63 64 20 77 69 6e 64 | 6f 77 29 20 2d 20 78 4f | cd wind|ow) - xO|
|00002250| 66 66 0d 65 6c 73 65 20 | 72 65 74 75 72 6e 20 74 |ff.else |return t|
|00002260| 72 75 6e 63 28 69 74 65 | 6d 20 36 20 6f 66 20 6c |runc(ite|m 6 of l|
|00002270| 69 6e 65 20 32 20 6f 66 | 20 69 74 2f 32 20 2d 20 |ine 2 of| it/2 - |
|00002280| 69 74 65 6d 20 31 20 6f | 66 20 74 68 65 20 6c 6f |item 1 o|f the lo|
|00002290| 63 20 6f 66 20 63 64 20 | 77 69 6e 64 6f 77 29 20 |c of cd |window) |
|000022a0| 2d 20 78 4f 66 66 20 2b | 20 69 74 65 6d 20 36 20 |- xOff +| item 6 |
|000022b0| 6f 66 20 6c 69 6e 65 20 | 31 20 6f 66 20 69 74 0d |of line |1 of it.|
|000022c0| 2d 2d 20 65 6c 73 65 20 | 2d 2d 20 6d 75 6c 74 69 |-- else |-- multi|
|000022d0| 70 6c 65 20 6d 6f 6e 69 | 74 6f 72 73 0d 65 6e 64 |ple moni|tors.end|
|000022e0| 20 69 66 0d 65 6e 64 20 | 67 58 0d 0d 66 75 6e 63 | if.end |gX..func|
|000022f0| 74 69 6f 6e 20 67 59 20 | 79 4f 66 66 0d 72 65 74 |tion gY |yOff.ret|
|00002300| 75 72 6e 20 74 72 75 6e | 63 28 69 74 65 6d 20 34 |urn trun|c(item 4|
|00002310| 20 6f 66 20 74 68 65 20 | 73 63 72 65 65 6e 52 65 | of the |screenRe|
|00002320| 63 74 2f 32 20 2d 20 69 | 74 65 6d 20 32 20 6f 66 |ct/2 - i|tem 2 of|
|00002330| 20 74 68 65 20 6c 6f 63 | 20 6f 66 20 63 64 20 77 | the loc| of cd w|
|00002340| 69 6e 64 6f 77 29 20 2d | 20 79 4f 66 66 0d 65 6e |indow) -| yOff.en|
|00002350| 64 20 67 59 0d 0d 66 75 | 6e 63 74 69 6f 6e 20 7a |d gY..fu|nction z|
|00002360| 6f 6f 6d 4f 4b 20 2d 2d | 20 54 52 55 45 20 69 66 |oomOK --| TRUE if|
|00002370| 20 64 6f 63 20 77 69 6e | 64 20 7a 6f 6f 6d 65 64 | doc win|d zoomed|
|00002380| 20 74 6f 20 63 64 20 77 | 69 6e 64 6f 77 0d 72 65 | to cd w|indow.re|
|00002390| 74 75 72 6e 20 74 68 65 | 20 68 65 69 67 68 74 20 |turn the| height |
|000023a0| 6f 66 20 63 64 20 77 69 | 6e 64 6f 77 20 2d 20 69 |of cd wi|ndow - i|
|000023b0| 74 65 6d 20 34 20 6f 66 | 20 74 68 65 20 72 65 63 |tem 4 of| the rec|
|000023c0| 74 20 6f 66 20 66 6c 64 | 20 69 64 20 34 20 3d 20 |t of fld| id 4 = |
|000023d0| 32 c2 0d 61 6e 64 20 74 | 68 65 20 77 69 64 74 68 |2..and t|he width|
|000023e0| 20 6f 66 20 63 64 20 77 | 69 6e 64 6f 77 20 2d 20 | of cd w|indow - |
|000023f0| 69 74 65 6d 20 33 20 6f | 66 20 74 68 65 20 72 65 |item 3 o|f the re|
|00002400| 63 74 20 6f 66 20 66 6c | 64 20 69 64 20 34 20 3d |ct of fl|d id 4 =|
|00002410| 20 32 0d 65 6e 64 20 7a | 6f 6f 6d 4f 4b 0d 0d 66 | 2.end z|oomOK..f|
|00002420| 75 6e 63 74 69 6f 6e 20 | 73 61 76 65 43 75 72 72 |unction |saveCurr|
|00002430| 65 6e 74 54 65 78 74 0d | 67 65 74 20 64 6f 63 53 |entText.|get docS|
|00002440| 69 7a 65 28 29 0d 69 66 | 20 69 74 20 b2 20 33 20 |ize().if| it . 3 |
|00002450| 74 68 65 6e 20 72 65 74 | 75 72 6e 20 46 41 4c 53 |then ret|urn FALS|
|00002460| 45 0d 65 6c 73 65 0d 61 | 6e 73 77 65 72 20 22 44 |E.else.a|nswer "D|
|00002470| 6f 20 79 6f 75 20 77 61 | 6e 74 20 74 6f 20 65 78 |o you wa|nt to ex|
|00002480| 70 6f 72 74 20 74 68 65 | 20 22 26 69 74 26 22 20 |port the| "&it&" |
|00002490| 63 68 61 72 61 63 74 65 | 72 73 20 6f 66 20 74 68 |characte|rs of th|
|000024a0| 65 20 63 75 72 72 65 6e | 74 20 74 65 78 74 20 62 |e curren|t text b|
|000024b0| 65 66 6f 72 65 20 69 74 | 20 69 73 20 63 6c 65 61 |efore it| is clea|
|000024c0| 72 65 64 3f 22 c2 0d 77 | 69 74 68 20 22 43 61 6e |red?"..w|ith "Can|
|000024d0| 63 65 6c 22 20 6f 72 20 | 22 59 65 73 22 20 6f 72 |cel" or |"Yes" or|
|000024e0| 20 22 4e 6f 22 0d 69 66 | 20 69 74 20 69 73 20 22 | "No".if| it is "|
|000024f0| 43 61 6e 63 65 6c 22 20 | 74 68 65 6e 20 72 65 74 |Cancel" |then ret|
|00002500| 75 72 6e 20 69 74 0d 65 | 6c 73 65 20 72 65 74 75 |urn it.e|lse retu|
|00002510| 72 6e 20 28 69 74 20 69 | 73 20 22 59 65 73 22 29 |rn (it i|s "Yes")|
|00002520| 0d 65 6e 64 20 69 66 0d | 65 6e 64 20 73 61 76 65 |.end if.|end save|
|00002530| 43 75 72 72 65 6e 74 54 | 65 78 74 0d 0d 66 75 6e |CurrentT|ext..fun|
|00002540| 63 74 69 6f 6e 20 6e 6f | 53 65 6c 65 63 74 69 6f |ction no|Selectio|
|00002550| 6e 0d 69 66 20 22 66 69 | 65 6c 64 22 20 69 73 20 |n.if "fi|eld" is |
|00002560| 6e 6f 74 20 69 6e 20 74 | 68 65 20 73 65 6c 65 63 |not in t|he selec|
|00002570| 74 65 64 43 68 75 6e 6b | 20 74 68 65 6e 0d 61 6e |tedChunk| then.an|
|00002580| 73 77 65 72 20 22 59 6f | 75 20 6d 75 73 74 20 73 |swer "Yo|u must s|
|00002590| 65 6c 65 63 74 20 73 6f | 6d 65 20 74 65 78 74 20 |elect so|me text |
|000025a0| 6f 72 20 70 6c 61 63 65 | 20 74 68 65 20 69 6e 73 |or place| the ins|
|000025b0| 65 72 74 69 6f 6e 20 70 | 6f 69 6e 74 20 69 6e 74 |ertion p|oint int|
|000025c0| 6f 20 61 6e 20 65 64 69 | 74 20 66 69 65 6c 64 20 |o an edi|t field |
|000025d0| 66 6f 72 20 74 68 69 73 | 20 66 75 6e 63 74 69 6f |for this| functio|
|000025e0| 6e 20 74 6f 20 77 6f 72 | 6b 2e 22 20 77 69 74 68 |n to wor|k." with|
|000025f0| 20 22 43 61 6e 63 65 6c | 22 0d 72 65 74 75 72 6e | "Cancel|".return|
|00002600| 20 54 52 55 45 0d 65 6c | 73 65 20 72 65 74 75 72 | TRUE.el|se retur|
|00002610| 6e 20 46 41 4c 53 45 0d | 65 6e 64 20 6e 6f 53 65 |n FALSE.|end noSe|
|00002620| 6c 65 63 74 69 6f 6e 0d | 0d 66 75 6e 63 74 69 6f |lection.|.functio|
|00002630| 6e 20 64 72 69 76 65 50 | 61 74 68 20 70 61 74 68 |n driveP|ath path|
|00002640| 20 2d 2d 20 72 65 74 75 | 72 6e 73 20 64 72 69 76 | -- retu|rns driv|
|00002650| 65 2c 70 61 74 68 3a 20 | 67 69 76 65 6e 20 64 6f |e,path: |given do|
|00002660| 63 20 66 75 6c 6c 70 61 | 74 68 4e 61 6d 65 0d 67 |c fullpa|thName.g|
|00002670| 65 74 20 74 68 65 20 69 | 74 65 6d 44 65 6c 69 6d |et the i|temDelim|
|00002680| 69 74 65 72 0d 73 65 74 | 20 74 68 65 20 69 74 65 |iter.set| the ite|
|00002690| 6d 44 65 6c 69 6d 69 74 | 65 72 20 74 6f 20 22 3a |mDelimit|er to ":|
|000026a0| 22 0d 70 75 74 20 69 74 | 65 6d 20 31 20 6f 66 20 |".put it|em 1 of |
|000026b0| 70 61 74 68 20 69 6e 74 | 6f 20 64 72 69 76 65 0d |path int|o drive.|
|000026c0| 64 65 6c 65 74 65 20 6c | 61 73 74 20 69 74 65 6d |delete l|ast item|
|000026d0| 20 6f 66 20 70 61 74 68 | 0d 73 65 74 20 74 68 65 | of path|.set the|
|000026e0| 20 69 74 65 6d 44 65 6c | 69 6d 69 74 65 72 20 74 | itemDel|imiter t|
|000026f0| 6f 20 69 74 0d 69 66 20 | 70 61 74 68 20 3d 20 22 |o it.if |path = "|
|00002700| 22 20 74 68 65 6e 20 72 | 65 74 75 72 6e 20 64 72 |" then r|eturn dr|
|00002710| 69 76 65 26 22 2c 22 0d | 65 6c 73 65 20 72 65 74 |ive&",".|else ret|
|00002720| 75 72 6e 20 64 72 69 76 | 65 26 22 2c 22 26 70 61 |urn driv|e&","&pa|
|00002730| 74 68 26 22 3a 22 0d 65 | 6e 64 20 64 72 69 76 65 |th&":".e|nd drive|
|00002740| 50 61 74 68 0d 0d 66 75 | 6e 63 74 69 6f 6e 20 6c |Path..fu|nction l|
|00002750| 65 61 66 4e 61 6d 65 20 | 70 61 74 68 0d 67 65 74 |eafName |path.get|
|00002760| 20 6c 65 6e 67 74 68 28 | 70 61 74 68 29 0d 72 65 | length(|path).re|
|00002770| 70 65 61 74 20 77 69 74 | 68 20 69 20 3d 20 69 74 |peat wit|h i = it|
|00002780| 20 64 6f 77 6e 20 74 6f | 20 31 0d 69 66 20 63 68 | down to| 1.if ch|
|00002790| 61 72 20 69 20 6f 66 20 | 70 61 74 68 20 3d 20 22 |ar i of |path = "|
|000027a0| 3a 22 20 74 68 65 6e 20 | 72 65 74 75 72 6e 20 63 |:" then |return c|
|000027b0| 68 61 72 20 28 69 2b 31 | 29 20 74 6f 20 69 74 20 |har (i+1|) to it |
|000027c0| 6f 66 20 70 61 74 68 0d | 65 6e 64 20 72 65 70 65 |of path.|end repe|
|000027d0| 61 74 0d 72 65 74 75 72 | 6e 20 70 61 74 68 0d 65 |at.retur|n path.e|
|000027e0| 6e 64 20 6c 65 61 66 4e | 61 6d 65 0d 0d 66 75 6e |nd leafN|ame..fun|
|000027f0| 63 74 69 6f 6e 20 74 68 | 65 50 61 74 68 20 70 61 |ction th|ePath pa|
|00002800| 74 68 20 2d 2d 20 72 65 | 74 75 72 6e 73 20 70 61 |th -- re|turns pa|
|00002810| 74 68 20 67 69 76 65 6e | 20 65 69 74 68 65 72 20 |th given| either |
|00002820| 66 75 6c 6c 20 70 61 74 | 68 20 6f 72 20 48 43 20 |full pat|h or HC |
|00002830| 6c 6f 6e 67 20 6e 61 6d | 65 0d 69 66 20 70 61 74 |long nam|e.if pat|
|00002840| 68 20 3d 20 22 22 20 74 | 68 65 6e 20 72 65 74 75 |h = "" t|hen retu|
|00002850| 72 6e 20 22 22 0d 72 65 | 70 65 61 74 20 77 69 74 |rn "".re|peat wit|
|00002860| 68 20 69 20 3d 20 6c 65 | 6e 67 74 68 28 70 61 74 |h i = le|ngth(pat|
|00002870| 68 29 20 64 6f 77 6e 20 | 74 6f 20 31 0d 69 66 20 |h) down |to 1.if |
|00002880| 63 68 61 72 20 69 20 6f | 66 20 70 61 74 68 20 3d |char i o|f path =|
|00002890| 20 22 3a 22 20 74 68 65 | 6e 0d 67 65 74 20 69 0d | ":" the|n.get i.|
|000028a0| 65 78 69 74 20 72 65 70 | 65 61 74 0d 65 6e 64 20 |exit rep|eat.end |
|000028b0| 69 66 0d 65 6e 64 20 72 | 65 70 65 61 74 0d 69 66 |if.end r|epeat.if|
|000028c0| 20 71 75 6f 74 65 20 69 | 73 20 69 6e 20 70 61 74 | quote i|s in pat|
|000028d0| 68 20 74 68 65 6e 20 72 | 65 74 75 72 6e 20 63 68 |h then r|eturn ch|
|000028e0| 61 72 20 38 20 74 6f 20 | 69 20 6f 66 20 70 61 74 |ar 8 to |i of pat|
|000028f0| 68 0d 65 6c 73 65 20 72 | 65 74 75 72 6e 20 63 68 |h.else r|eturn ch|
|00002900| 61 72 20 31 20 74 6f 20 | 69 20 6f 66 20 70 61 74 |ar 1 to |i of pat|
|00002910| 68 0d 65 6e 64 20 74 68 | 65 50 61 74 68 0d 0d 66 |h.end th|ePath..f|
|00002920| 75 6e 63 74 69 6f 6e 20 | 67 65 74 50 61 74 68 20 |unction |getPath |
|00002930| 6d 20 2d 2d 20 72 65 74 | 75 72 6e 20 61 20 70 61 |m -- ret|urn a pa|
|00002940| 74 68 0d 67 6c 6f 62 61 | 6c 20 65 72 72 47 6c 6f |th.globa|l errGlo|
|00002950| 62 61 6c 0d 67 65 74 20 | 66 75 6c 6c 53 46 50 61 |bal.get |fullSFPa|
|00002960| 63 6b 28 22 46 22 2c 6d | 29 0d 69 66 20 65 72 72 |ck("F",m|).if err|
|00002970| 47 6c 6f 62 61 6c 20 ad | 20 22 22 20 74 68 65 6e |Global .| "" then|
|00002980| 0d 61 6e 73 77 65 72 20 | 22 45 52 52 4f 52 3a 22 |.answer |"ERROR:"|
|00002990| 26 72 65 74 75 72 6e 26 | 22 d2 22 20 26 20 65 72 |&return&|"." & er|
|000029a0| 72 47 6c 6f 62 61 6c 20 | 26 20 22 d3 22 0d 70 75 |rGlobal |& ".".pu|
|000029b0| 74 20 22 22 20 69 6e 74 | 6f 20 65 72 72 47 6c 6f |t "" int|o errGlo|
|000029c0| 62 61 6c 0d 65 6e 64 20 | 69 66 0d 72 65 74 75 72 |bal.end |if.retur|
|000029d0| 6e 20 69 74 0d 65 6e 64 | 20 67 65 74 50 61 74 68 |n it.end| getPath|
|000029e0| 0d 0d 66 75 6e 63 74 69 | 6f 6e 20 66 6f 6f 74 65 |..functi|on foote|
|000029f0| 72 54 61 67 0d 69 66 20 | 74 68 65 20 68 69 6c 69 |rTag.if |the hili|
|00002a00| 74 65 20 6f 66 20 63 64 | 20 62 74 6e 20 69 64 20 |te of cd| btn id |
|00002a10| 38 32 20 6f 66 20 63 64 | 20 22 70 72 65 66 73 22 |82 of cd| "prefs"|
|00002a20| 20 74 68 65 6e 0d 67 65 | 74 20 63 64 20 66 6c 64 | then.ge|t cd fld|
|00002a30| 20 69 64 20 38 33 20 6f | 66 20 63 64 20 22 70 72 | id 83 o|f cd "pr|
|00002a40| 65 66 73 22 0d 69 66 20 | 69 74 20 3d 20 22 22 20 |efs".if |it = "" |
|00002a50| 74 68 65 6e 20 72 65 74 | 75 72 6e 20 22 3c 21 2d |then ret|urn "<!-|
|00002a60| 2d 46 4f 4f 54 2d 2d 3e | 22 20 65 6c 73 65 20 72 |-FOOT-->|" else r|
|00002a70| 65 74 75 72 6e 20 69 74 | 0d 65 6c 73 65 20 72 65 |eturn it|.else re|
|00002a80| 74 75 72 6e 20 22 22 0d | 65 6e 64 20 66 6f 6f 74 |turn "".|end foot|
|00002a90| 65 72 54 61 67 0d 0d 66 | 75 6e 63 74 69 6f 6e 20 |erTag..f|unction |
|00002aa0| 76 69 7a 20 77 69 6e 64 | 6f 77 4e 61 6d 65 0d 69 |viz wind|owName.i|
|00002ab0| 66 20 74 68 65 72 65 20 | 69 73 20 61 20 77 69 6e |f there |is a win|
|00002ac0| 64 6f 77 20 77 69 6e 64 | 6f 77 4e 61 6d 65 20 74 |dow wind|owName t|
|00002ad0| 68 65 6e 20 72 65 74 75 | 72 6e 20 28 74 68 65 20 |hen retu|rn (the |
|00002ae0| 76 69 73 69 62 6c 65 20 | 6f 66 20 77 69 6e 64 6f |visible |of windo|
|00002af0| 77 20 77 69 6e 64 6f 77 | 4e 61 6d 65 29 0d 65 6c |w window|Name).el|
|00002b00| 73 65 20 72 65 74 75 72 | 6e 20 46 41 4c 53 45 0d |se retur|n FALSE.|
|00002b10| 65 6e 64 20 76 69 7a 0d | 0d 2d 2d 20 68 61 6e 64 |end viz.|.-- hand|
|00002b20| 6c 65 72 73 3a 0d 0d 6f | 6e 20 61 70 70 6c 65 45 |lers:..o|n appleE|
|00002b30| 76 65 6e 74 20 74 68 65 | 43 6c 61 73 73 2c 74 68 |vent the|Class,th|
|00002b40| 65 49 44 2c 74 68 65 53 | 65 6e 64 65 72 20 2d 2d |eID,theS|ender --|
|00002b50| 20 64 72 61 67 27 6e 20 | 64 72 6f 70 20 69 6d 70 | drag'n |drop imp|
|00002b60| 6f 72 74 65 72 0d 67 6c | 6f 62 61 6c 20 65 72 72 |orter.gl|obal err|
|00002b70| 47 6c 6f 62 61 6c 0d 69 | 66 20 74 68 65 72 65 20 |Global.i|f there |
|00002b80| 69 73 20 61 20 77 69 6e | 64 6f 77 20 22 69 6e 66 |is a win|dow "inf|
|00002b90| 6f 22 20 74 68 65 6e 20 | 73 68 6f 77 49 6e 66 6f |o" then |showInfo|
|00002ba0| 20 22 41 70 70 6c 65 45 | 76 65 6e 74 3a 20 63 6c | "AppleE|vent: cl|
|00002bb0| 61 73 73 3a 5b 22 26 74 | 68 65 43 6c 61 73 73 26 |ass:["&t|heClass&|
|00002bc0| 22 5d 20 49 44 3a 5b 22 | 26 74 68 65 49 44 26 22 |"] ID:["|&theID&"|
|00002bd0| 5d 22 26 72 65 74 75 72 | 6e 26 22 73 65 6e 64 65 |]"&retur|n&"sende|
|00002be0| 72 3a 5b 22 26 74 68 65 | 53 65 6e 64 65 72 26 22 |r:["&the|Sender&"|
|00002bf0| 5d 22 0d 70 75 74 20 63 | 68 61 72 20 38 20 74 6f |]".put c|har 8 to|
|00002c00| 20 39 39 39 20 6f 66 20 | 74 68 65 20 6c 6f 6e 67 | 999 of |the long|
|00002c10| 20 6e 61 6d 65 20 6f 66 | 20 74 68 69 73 20 73 74 | name of| this st|
|00002c20| 61 63 6b 20 69 6e 74 6f | 20 73 74 61 63 6b 4e 61 |ack into| stackNa|
|00002c30| 6d 65 0d 64 65 6c 65 74 | 65 20 6c 61 73 74 20 63 |me.delet|e last c|
|00002c40| 68 61 72 20 6f 66 20 73 | 74 61 63 6b 4e 61 6d 65 |har of s|tackName|
|00002c50| 0d 73 65 74 20 6c 6f 63 | 6b 45 72 72 6f 72 44 69 |.set loc|kErrorDi|
|00002c60| 61 6c 6f 67 73 20 74 6f | 20 54 52 55 45 0d 67 65 |alogs to| TRUE.ge|
|00002c70| 74 20 74 68 65 20 69 74 | 65 6d 44 65 6c 69 6d 69 |t the it|emDelimi|
|00002c80| 74 65 72 0d 73 65 74 20 | 74 68 65 20 69 74 65 6d |ter.set |the item|
|00002c90| 44 65 6c 69 6d 69 74 65 | 72 20 74 6f 20 63 6f 6c |Delimite|r to col|
|00002ca0| 6f 6e 0d 70 75 74 20 6c | 61 73 74 20 69 74 65 6d |on.put l|ast item|
|00002cb0| 20 6f 66 20 74 68 65 53 | 65 6e 64 65 72 20 69 6e | of theS|ender in|
|00002cc0| 74 6f 20 73 65 6e 64 69 | 6e 67 50 72 6f 67 72 61 |to sendi|ngProgra|
|00002cd0| 6d 0d 73 65 74 20 74 68 | 65 20 69 74 65 6d 44 65 |m.set th|e itemDe|
|00002ce0| 6c 69 6d 69 74 65 72 20 | 74 6f 20 69 74 0d 69 66 |limiter |to it.if|
|00002cf0| 20 74 68 65 43 6c 61 73 | 73 20 3d 20 22 61 65 76 | theClas|s = "aev|
|00002d00| 74 22 20 74 68 65 6e 0d | 69 66 20 74 68 65 49 44 |t" then.|if theID|
|00002d10| 20 3d 20 22 71 75 69 74 | 22 20 61 6e 64 20 73 65 | = "quit|" and se|
|00002d20| 6e 64 69 6e 67 50 72 6f | 67 72 61 6d 20 69 73 20 |ndingPro|gram is |
|00002d30| 22 4d 61 63 4f 53 22 20 | 74 68 65 6e 0d 64 6f 4d |"MacOS" |then.doM|
|00002d40| 65 6e 75 20 22 51 75 69 | 74 20 48 79 70 65 72 43 |enu "Qui|t HyperC|
|00002d50| 61 72 64 22 0d 65 78 69 | 74 48 43 0d 65 6c 73 65 |ard".exi|tHC.else|
|00002d60| 20 69 66 20 74 68 65 49 | 44 20 3d 20 22 6f 64 6f | if theI|D = "odo|
|00002d70| 63 22 20 74 68 65 6e 20 | 2d 2d 20 61 6e 64 20 73 |c" then |-- and s|
|00002d80| 65 6e 64 69 6e 67 50 72 | 6f 67 72 61 6d 20 3d 20 |endingPr|ogram = |
|00002d90| 22 46 69 6e 64 65 72 22 | 20 74 68 65 6e 0d 72 65 |"Finder"| then.re|
|00002da0| 71 75 65 73 74 20 61 70 | 70 6c 65 45 76 65 6e 74 |quest ap|pleEvent|
|00002db0| 20 64 61 74 61 0d 69 66 | 20 69 74 20 3d 20 22 22 | data.if| it = ""|
|00002dc0| 20 6f 72 20 69 74 20 3d | 20 73 74 61 63 6b 4e 61 | or it =| stackNa|
|00002dd0| 6d 65 20 74 68 65 6e 0d | 72 65 70 6c 79 20 22 45 |me then.|reply "E|
|00002de0| 76 65 6e 74 20 72 65 6a | 65 63 74 65 64 2e 22 0d |vent rej|ected.".|
|00002df0| 65 78 69 74 20 61 70 70 | 6c 65 45 76 65 6e 74 0d |exit app|leEvent.|
|00002e00| 65 6e 64 20 69 66 0d 70 | 75 74 20 69 74 20 69 6e |end if.p|ut it in|
|00002e10| 74 6f 20 66 4e 61 6d 65 | 4c 69 73 74 0d 62 69 6e |to fName|List.bin|
|00002e20| 6b 20 66 34 73 0d 67 6f | 20 6c 61 73 74 20 63 64 |k f4s.go| last cd|
|00002e30| 20 6f 66 20 62 67 20 22 | 45 64 69 74 6f 72 22 0d | of bg "|Editor".|
|00002e40| 72 65 70 65 61 74 20 77 | 69 74 68 20 69 20 3d 20 |repeat w|ith i = |
|00002e50| 31 20 74 6f 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |1 to the| number |
|00002e60| 6f 66 20 6c 69 6e 65 73 | 20 6f 66 20 66 4e 61 6d |of lines| of fNam|
|00002e70| 65 4c 69 73 74 0d 69 66 | 20 28 69 74 65 6d 20 33 |eList.if| (item 3|
|00002e80| 20 6f 66 20 66 69 6c 65 | 53 79 73 49 6e 66 6f 28 | of file|SysInfo(|
|00002e90| 6c 69 6e 65 20 69 20 6f | 66 20 66 4e 61 6d 65 4c |line i o|f fNameL|
|00002ea0| 69 73 74 29 20 3d 20 22 | 54 45 58 54 22 29 20 74 |ist) = "|TEXT") t|
|00002eb0| 68 65 6e 0d 73 65 6e 64 | 20 22 69 6d 70 22 26 26 |hen.send| "imp"&&|
|00002ec0| 71 75 6f 74 65 26 28 6c | 69 6e 65 20 69 20 6f 66 |quote&(l|ine i of|
|00002ed0| 20 66 4e 61 6d 65 4c 69 | 73 74 29 26 71 75 6f 74 | fNameLi|st)&quot|
|00002ee0| 65 20 74 6f 20 62 67 20 | 62 74 6e 20 69 64 20 32 |e to bg |btn id 2|
|00002ef0| 31 20 6f 66 20 63 64 20 | 31 20 6f 66 20 62 67 20 |1 of cd |1 of bg |
|00002f00| 22 45 64 69 74 6f 72 22 | 0d 65 6e 64 20 69 66 0d |"Editor"|.end if.|
|00002f10| 65 6e 64 20 72 65 70 65 | 61 74 0d 65 6e 64 20 69 |end repe|at.end i|
|00002f20| 66 0d 65 6c 73 65 20 69 | 66 20 74 68 65 43 6c 61 |f.else i|f theCla|
|00002f30| 73 73 20 3d 20 22 73 79 | 73 6f 22 20 74 68 65 6e |ss = "sy|so" then|
|00002f40| 20 70 61 73 73 20 61 70 | 70 6c 65 45 76 65 6e 74 | pass ap|pleEvent|
|00002f50| 0d 65 6e 64 20 61 70 70 | 6c 65 45 76 65 6e 74 0d |.end app|leEvent.|
|00002f60| 0d 6f 6e 20 73 68 6f 77 | 49 6e 66 6f 20 63 6f 6e |.on show|Info con|
|00002f70| 74 65 6e 74 0d 70 75 74 | 20 28 74 68 65 20 70 61 |tent.put| (the pa|
|00002f80| 72 61 6d 43 6f 75 6e 74 | 20 3d 20 30 29 20 69 6e |ramCount| = 0) in|
|00002f90| 74 6f 20 6e 6f 50 61 72 | 61 6d 73 0d 69 66 20 74 |to noPar|ams.if t|
|00002fa0| 68 65 72 65 20 69 73 20 | 6e 6f 74 20 61 20 77 69 |here is |not a wi|
|00002fb0| 6e 64 6f 77 20 22 49 6e | 66 6f 22 20 74 68 65 6e |ndow "In|fo" then|
|00002fc0| 0d 54 65 78 74 6f 69 64 | 20 22 49 6e 66 6f 22 2c |.Textoid| "Info",|
|00002fd0| 22 6f 6e 65 20 6d 6f 6d | 65 6e 74 c9 22 2c 22 30 |"one mom|ent.","0|
|00002fe0| 2c 2d 31 30 32 33 2c 34 | 30 30 2c 2d 31 30 30 30 |,-1023,4|00,-1000|
|00002ff0| 22 2c 22 46 75 74 75 72 | 61 22 2c 22 31 30 22 2c |","Futur|a","10",|
|00003000| 22 57 69 6e 64 6f 69 64 | 22 0d 67 65 74 20 74 68 |"Windoid|".get th|
|00003010| 65 20 72 65 73 75 6c 74 | 0d 69 66 20 69 74 20 ad |e result|.if it .|
|00003020| 20 22 22 20 74 68 65 6e | 0d 62 65 65 70 0d 61 6e | "" then|.beep.an|
|00003030| 73 77 65 72 20 69 74 0d | 65 78 69 74 48 43 0d 65 |swer it.|exitHC.e|
|00003040| 6c 73 65 20 69 66 20 74 | 68 65 72 65 20 69 73 20 |lse if t|here is |
|00003050| 61 20 77 69 6e 64 6f 77 | 20 22 49 6e 66 6f 22 20 |a window| "Info" |
|00003060| 74 68 65 6e 0d 69 66 20 | 69 74 65 6d 20 34 20 6f |then.if |item 4 o|
|00003070| 66 20 74 68 65 20 73 63 | 72 65 65 6e 52 65 63 74 |f the sc|reenRect|
|00003080| 20 2d 20 69 74 65 6d 20 | 34 20 6f 66 20 74 68 65 | - item |4 of the|
|00003090| 20 72 65 63 74 20 6f 66 | 20 63 64 20 77 69 6e 64 | rect of| cd wind|
|000030a0| 6f 77 20 3e 20 32 35 0d | 74 68 65 6e 20 67 65 74 |ow > 25.|then get|
|000030b0| 20 28 68 65 69 67 68 74 | 20 6f 66 20 63 64 20 77 | (height| of cd w|
|000030c0| 69 6e 64 6f 77 29 20 2b | 20 33 37 20 65 6c 73 65 |indow) +| 37 else|
|000030d0| 20 67 65 74 20 28 68 65 | 69 67 68 74 20 6f 66 20 | get (he|ight of |
|000030e0| 63 64 20 77 69 6e 64 6f | 77 29 20 2d 20 34 0d 67 |cd windo|w) - 4.g|
|000030f0| 65 74 20 22 33 2c 22 26 | 69 74 2d 32 33 26 22 2c |et "3,"&|it-23&",|
|00003100| 34 37 35 2c 22 26 69 74 | 0d 73 65 74 20 74 68 65 |475,"&it|.set the|
|00003110| 20 72 65 63 74 20 6f 66 | 20 77 69 6e 64 6f 77 20 | rect of| window |
|00003120| 22 69 6e 66 6f 22 20 74 | 6f 20 69 74 0d 65 6e 64 |"info" t|o it.end|
|00003130| 20 69 66 0d 65 6e 64 20 | 69 66 0d 69 66 20 6e 6f | if.end |if.if no|
|00003140| 50 61 72 61 6d 73 20 74 | 68 65 6e 20 73 65 74 49 |Params t|hen setI|
|00003150| 6e 66 6f 54 65 78 74 20 | 65 6c 73 65 20 73 65 74 |nfoText |else set|
|00003160| 49 6e 66 6f 54 65 78 74 | 20 63 6f 6e 74 65 6e 74 |InfoText| content|
|00003170| 0d 65 6e 64 20 73 68 6f | 77 49 6e 66 6f 0d 0d 6f |.end sho|wInfo..o|
|00003180| 6e 20 73 65 74 49 6e 66 | 6f 54 65 78 74 20 63 64 |n setInf|oText cd|
|00003190| 49 44 2c 74 68 65 54 65 | 78 74 0d 73 65 6e 64 20 |ID,theTe|xt.send |
|000031a0| 74 68 65 20 70 61 72 61 | 6d 73 20 74 6f 20 62 67 |the para|ms to bg|
|000031b0| 20 62 74 6e 20 69 64 20 | 32 31 20 6f 66 20 63 64 | btn id |21 of cd|
|000031c0| 20 31 20 6f 66 20 62 67 | 20 22 45 64 69 74 6f 72 | 1 of bg| "Editor|
|000031d0| 22 0d 65 6e 64 20 73 65 | 74 49 6e 66 6f 54 65 78 |".end se|tInfoTex|
|000031e0| 74 0d 0d 6f 6e 20 6f 70 | 65 6e 54 65 78 74 6f 69 |t..on op|enTextoi|
|000031f0| 64 20 57 4e 61 6d 65 2c | 57 49 64 0d 69 66 20 57 |d WName,|WId.if W|
|00003200| 4e 61 6d 65 20 3d 20 22 | 49 6e 66 6f 22 20 74 68 |Name = "|Info" th|
|00003210| 65 6e 0d 73 65 74 20 74 | 68 65 20 6c 6f 63 6b 54 |en.set t|he lockT|
|00003220| 65 78 74 20 6f 66 20 77 | 69 6e 64 6f 77 20 57 4e |ext of w|indow WN|
|00003230| 61 6d 65 20 74 6f 20 54 | 52 55 45 0d 73 65 74 20 |ame to T|RUE.set |
|00003240| 74 65 78 74 57 72 61 70 | 20 6f 66 20 77 69 6e 64 |textWrap| of wind|
|00003250| 6f 77 20 57 4e 61 6d 65 | 20 74 6f 20 46 41 4c 53 |ow WName| to FALS|
|00003260| 45 0d 73 65 74 20 55 6e | 4c 6f 63 6b 41 6c 6c 6f |E.set Un|LockAllo|
|00003270| 77 65 64 20 6f 66 20 77 | 69 6e 64 6f 77 20 57 4e |wed of w|indow WN|
|00003280| 61 6d 65 20 74 6f 20 46 | 41 4c 53 45 0d 73 65 74 |ame to F|ALSE.set|
|00003290| 20 53 68 6f 77 56 53 63 | 72 6f 6c 6c 20 6f 66 20 | ShowVSc|roll of |
|000032a0| 77 69 6e 64 6f 77 20 57 | 4e 61 6d 65 20 74 6f 20 |window W|Name to |
|000032b0| 46 41 4c 53 45 0d 73 65 | 74 20 53 68 6f 77 48 53 |FALSE.se|t ShowHS|
|000032c0| 63 72 6f 6c 6c 20 6f 66 | 20 77 69 6e 64 6f 77 20 |croll of| window |
|000032d0| 57 4e 61 6d 65 20 74 6f | 20 46 41 4c 53 45 0d 73 |WName to| FALSE.s|
|000032e0| 65 74 20 74 65 78 74 53 | 74 79 6c 65 20 6f 66 20 |et textS|tyle of |
|000032f0| 77 69 6e 64 6f 77 20 57 | 4e 61 6d 65 20 74 6f 20 |window W|Name to |
|00003300| 22 70 6c 61 69 6e 22 0d | 65 6e 64 20 69 66 0d 65 |"plain".|end if.e|
|00003310| 6e 64 20 6f 70 65 6e 54 | 65 78 74 6f 69 64 0d 0d |nd openT|extoid..|
|00003320| 6f 6e 20 73 74 61 72 74 | 75 70 0d 68 69 64 65 20 |on start|up.hide |
|00003330| 73 63 72 6f 6c 6c 20 77 | 69 6e 64 6f 77 0d 69 66 |scroll w|indow.if|
|00003340| 20 69 74 65 6d 20 31 20 | 6f 66 20 6c 69 6e 65 20 | item 1 |of line |
|00003350| 31 20 6f 66 20 67 65 74 | 4d 6f 64 65 28 29 20 3d |1 of get|Mode() =|
|00003360| 20 22 43 22 20 74 68 65 | 6e 20 70 75 74 20 22 41 | "C" the|n put "A|
|00003370| 62 6f 75 74 42 6f 78 22 | 20 69 6e 74 6f 20 77 69 |boutBox"| into wi|
|00003380| 6e 64 0d 65 6c 73 65 20 | 70 75 74 20 22 41 62 6f |nd.else |put "Abo|
|00003390| 75 74 42 6f 78 42 57 22 | 20 69 6e 74 6f 20 77 69 |utBoxBW"| into wi|
|000033a0| 6e 64 0d 70 69 63 74 75 | 72 65 20 77 69 6e 64 2c |nd.pictu|re wind,|
|000033b0| 72 65 73 6f 75 72 63 65 | 2c 73 68 61 64 6f 77 2c |resource|,shadow,|
|000033c0| 66 61 6c 73 65 2c 2c 74 | 72 75 65 0d 67 65 74 20 |false,,t|rue.get |
|000033d0| 74 68 65 20 72 65 73 75 | 6c 74 0d 69 66 20 74 68 |the resu|lt.if th|
|000033e0| 65 72 65 20 69 73 20 61 | 20 77 69 6e 64 6f 77 20 |ere is a| window |
|000033f0| 77 69 6e 64 20 74 68 65 | 6e 20 73 68 6f 77 20 77 |wind the|n show w|
|00003400| 69 6e 64 6f 77 20 77 69 | 6e 64 0d 69 66 20 69 74 |indow wi|nd.if it|
|00003410| 20 ad 20 22 22 20 74 68 | 65 6e 20 61 6e 73 77 65 | . "" th|en answe|
|00003420| 72 20 22 45 52 52 4f 52 | 3a 22 26 72 65 74 75 72 |r "ERROR|:"&retur|
|00003430| 6e 26 69 74 0d 73 65 74 | 20 63 75 72 73 6f 72 20 |n&it.set| cursor |
|00003440| 74 6f 20 66 69 6e 67 65 | 72 73 30 0d 70 61 73 73 |to finge|rs0.pass|
|00003450| 20 73 74 61 72 74 75 70 | 0d 65 6e 64 20 73 74 61 | startup|.end sta|
|00003460| 72 74 75 70 0d 0d 6f 6e | 20 7a 6f 6f 6d 44 6f 63 |rtup..on| zoomDoc|
|00003470| 75 6d 65 6e 74 0d 6c 6f | 63 6b 20 73 63 72 65 65 |ument.lo|ck scree|
|00003480| 6e 0d 67 65 74 20 77 69 | 64 74 68 20 6f 66 20 63 |n.get wi|dth of c|
|00003490| 64 20 77 69 6e 64 6f 77 | 0d 69 66 20 69 74 20 3c |d window|.if it <|
|000034a0| 20 33 36 38 20 74 68 65 | 6e 20 67 65 74 20 33 36 | 368 the|n get 36|
|000034b0| 38 0d 73 65 74 20 74 68 | 65 20 6c 6f 63 20 6f 66 |8.set th|e loc of|
|000034c0| 20 62 67 20 62 74 6e 20 | 22 69 6e 64 65 78 22 20 | bg btn |"index" |
|000034d0| 74 6f 20 69 74 2d 31 37 | 32 2c 31 30 0d 73 65 74 |to it-17|2,10.set|
|000034e0| 20 74 68 65 20 6c 6f 63 | 20 6f 66 20 62 67 20 62 | the loc| of bg b|
|000034f0| 74 6e 20 22 66 69 72 73 | 74 22 20 74 6f 20 69 74 |tn "firs|t" to it|
|00003500| 2d 31 35 32 2c 31 30 0d | 73 65 74 20 74 68 65 20 |-152,10.|set the |
|00003510| 6c 6f 63 20 6f 66 20 62 | 67 20 62 74 6e 20 22 70 |loc of b|g btn "p|
|00003520| 72 65 76 22 20 74 6f 20 | 69 74 2d 31 33 32 2c 31 |rev" to |it-132,1|
|00003530| 30 0d 73 65 74 20 74 68 | 65 20 6c 6f 63 20 6f 66 |0.set th|e loc of|
|00003540| 20 62 67 20 62 74 6e 20 | 22 6e 65 78 74 22 20 74 | bg btn |"next" t|
|00003550| 6f 20 69 74 2d 31 31 32 | 2c 31 30 0d 73 65 74 20 |o it-112|,10.set |
|00003560| 74 68 65 20 6c 6f 63 20 | 6f 66 20 62 67 20 62 74 |the loc |of bg bt|
|00003570| 6e 20 22 6c 61 73 74 22 | 20 74 6f 20 69 74 2d 39 |n "last"| to it-9|
|00003580| 32 2c 31 30 0d 73 65 74 | 20 74 68 65 20 6c 6f 63 |2,10.set| the loc|
|00003590| 20 6f 66 20 62 67 20 62 | 74 6e 20 22 72 65 74 75 | of bg b|tn "retu|
|000035a0| 72 6e 22 20 74 6f 20 69 | 74 2d 37 32 2c 31 30 0d |rn" to i|t-72,10.|
|000035b0| 73 65 74 20 74 68 65 20 | 6c 6f 63 20 6f 66 20 62 |set the |loc of b|
|000035c0| 67 20 62 74 6e 20 22 74 | 6f 6f 6c 73 22 20 74 6f |g btn "t|ools" to|
|000035d0| 20 69 74 2d 34 39 2c 31 | 30 0d 73 65 74 20 74 68 | it-49,1|0.set th|
|000035e0| 65 20 6c 6f 63 20 6f 66 | 20 62 67 20 62 74 6e 20 |e loc of| bg btn |
|000035f0| 22 69 6e 66 6f 22 20 74 | 6f 20 69 74 2d 32 38 2c |"info" t|o it-28,|
|00003600| 31 30 0d 73 65 74 20 74 | 68 65 20 6c 6f 63 20 6f |10.set t|he loc o|
|00003610| 66 20 62 67 20 62 74 6e | 20 22 68 65 6c 70 22 20 |f bg btn| "help" |
|00003620| 74 6f 20 69 74 2d 31 31 | 2c 31 30 0d 75 6e 6c 6f |to it-11|,10.unlo|
|00003630| 63 6b 20 73 63 72 65 65 | 6e 0d 65 6e 64 20 7a 6f |ck scree|n.end zo|
|00003640| 6f 6d 44 6f 63 75 6d 65 | 6e 74 0d 0d 6f 6e 20 6f |omDocume|nt..on o|
|00003650| 70 65 6e 53 74 61 63 6b | 0d 68 69 64 65 20 73 63 |penStack|.hide sc|
|00003660| 72 6f 6c 6c 20 77 69 6e | 64 6f 77 0d 73 65 6e 64 |roll win|dow.send|
|00003670| 20 69 6e 69 74 69 61 6c | 69 7a 65 20 74 6f 20 63 | initial|ize to c|
|00003680| 64 20 69 64 20 32 38 37 | 38 0d 70 61 73 73 20 6f |d id 287|8.pass o|
|00003690| 70 65 6e 53 74 61 63 6b | 0d 65 6e 64 20 6f 70 65 |penStack|.end ope|
|000036a0| 6e 53 74 61 63 6b 0d 0d | 6f 6e 20 63 6c 6f 73 65 |nStack..|on close|
|000036b0| 53 74 61 63 6b 0d 70 75 | 74 20 74 68 65 20 72 65 |Stack.pu|t the re|
|000036c0| 63 74 20 6f 66 20 63 64 | 20 77 69 6e 64 6f 77 26 |ct of cd| window&|
|000036d0| 72 65 74 75 72 6e 26 74 | 68 65 20 73 63 72 65 65 |return&t|he scree|
|000036e0| 6e 52 65 63 74 20 69 6e | 74 6f 20 63 64 20 66 6c |nRect in|to cd fl|
|000036f0| 64 20 69 64 20 31 39 20 | 6f 66 20 63 64 20 22 70 |d id 19 |of cd "p|
|00003700| 72 65 66 73 22 0d 69 66 | 20 74 68 65 20 68 69 6c |refs".if| the hil|
|00003710| 69 74 65 20 6f 66 20 63 | 64 20 62 74 6e 20 69 64 |ite of c|d btn id|
|00003720| 20 32 39 20 6f 66 20 63 | 64 20 22 70 72 65 66 73 | 29 of c|d "prefs|
|00003730| 22 20 74 68 65 6e 20 63 | 6f 6d 70 61 63 74 53 74 |" then c|ompactSt|
|00003740| 61 63 6b 0d 69 66 20 74 | 68 65 72 65 20 69 73 20 |ack.if t|here is |
|00003750| 61 20 77 69 6e 64 6f 77 | 20 22 48 54 4d 4c 2e 65 |a window| "HTML.e|
|00003760| 64 69 74 20 48 65 6c 70 | 22 20 74 68 65 6e 20 63 |dit Help|" then c|
|00003770| 6c 6f 73 65 20 77 69 6e | 64 6f 77 20 22 48 54 4d |lose win|dow "HTM|
|00003780| 4c 2e 65 64 69 74 20 48 | 65 6c 70 22 0d 69 66 20 |L.edit H|elp".if |
|00003790| 74 68 65 72 65 20 69 73 | 20 61 20 77 69 6e 64 6f |there is| a windo|
|000037a0| 77 20 22 48 54 4d 4c 54 | 6f 6f 6c 73 22 20 74 68 |w "HTMLT|ools" th|
|000037b0| 65 6e 20 63 6c 6f 73 65 | 20 77 69 6e 64 6f 77 20 |en close| window |
|000037c0| 22 48 54 4d 4c 54 6f 6f | 6c 73 22 0d 69 66 20 74 |"HTMLToo|ls".if t|
|000037d0| 68 65 72 65 20 69 73 20 | 61 20 77 69 6e 64 6f 77 |here is |a window|
|000037e0| 20 22 48 54 4d 4c 54 6f | 6f 6c 73 43 6f 6c 6f 72 | "HTMLTo|olsColor|
|000037f0| 22 20 74 68 65 6e 20 63 | 6c 6f 73 65 20 77 69 6e |" then c|lose win|
|00003800| 64 6f 77 20 22 48 54 4d | 4c 54 6f 6f 6c 73 43 6f |dow "HTM|LToolsCo|
|00003810| 6c 6f 72 22 0d 69 66 20 | 74 68 65 72 65 20 69 73 |lor".if |there is|
|00003820| 20 61 20 77 69 6e 64 6f | 77 20 22 45 6e 74 69 74 | a windo|w "Entit|
|00003830| 69 65 73 22 20 74 68 65 | 6e 20 63 6c 6f 73 65 20 |ies" the|n close |
|00003840| 77 69 6e 64 6f 77 20 22 | 45 6e 74 69 74 69 65 73 |window "|Entities|
|00003850| 22 0d 72 65 73 65 74 20 | 6d 65 6e 75 62 61 72 0d |".reset |menubar.|
|00003860| 70 61 73 73 20 63 6c 6f | 73 65 53 74 61 63 6b 0d |pass clo|seStack.|
|00003870| 65 6e 64 20 63 6c 6f 73 | 65 53 74 61 63 6b 0d 0d |end clos|eStack..|
|00003880| 6f 6e 20 73 75 73 70 65 | 6e 64 53 74 61 63 6b 0d |on suspe|ndStack.|
|00003890| 68 69 64 65 50 61 6c 65 | 74 74 65 73 0d 72 65 73 |hidePale|ttes.res|
|000038a0| 65 74 20 6d 65 6e 75 62 | 61 72 0d 70 61 73 73 20 |et menub|ar.pass |
|000038b0| 73 75 73 70 65 6e 64 53 | 74 61 63 6b 0d 65 6e 64 |suspendS|tack.end|
|000038c0| 20 73 75 73 70 65 6e 64 | 53 74 61 63 6b 0d 0d 6f | suspend|Stack..o|
|000038d0| 6e 20 72 65 73 75 6d 65 | 53 74 61 63 6b 0d 73 65 |n resume|Stack.se|
|000038e0| 65 6b 50 61 6c 65 74 74 | 65 73 0d 73 65 6e 64 20 |ekPalett|es.send |
|000038f0| 73 65 74 4d 65 6e 75 73 | 20 74 6f 20 63 64 20 69 |setMenus| to cd i|
|00003900| 64 20 32 38 37 38 0d 70 | 61 73 73 20 72 65 73 75 |d 2878.p|ass resu|
|00003910| 6d 65 53 74 61 63 6b 0d | 65 6e 64 20 72 65 73 75 |meStack.|end resu|
|00003920| 6d 65 53 74 61 63 6b 0d | 0d 6f 6e 20 63 6c 6f 73 |meStack.|.on clos|
|00003930| 65 50 61 6c 65 74 74 65 | 0d 67 6c 6f 62 61 6c 20 |ePalette|.global |
|00003940| 48 65 54 5f 76 69 7a 2c | 48 65 43 5f 76 69 7a 2c |HeT_viz,|HeC_viz,|
|00003950| 69 6e 66 6f 5f 76 69 7a | 0d 69 66 20 74 68 65 72 |info_viz|.if ther|
|00003960| 65 20 69 73 20 61 20 77 | 69 6e 64 6f 77 20 22 48 |e is a w|indow "H|
|00003970| 54 4d 4c 54 6f 6f 6c 73 | 43 6f 6c 6f 72 22 20 74 |TMLTools|Color" t|
|00003980| 68 65 6e 20 70 75 74 20 | 74 68 65 20 6c 6f 63 20 |hen put |the loc |
|00003990| 6f 66 20 77 69 6e 64 6f | 77 20 22 48 54 4d 4c 54 |of windo|w "HTMLT|
|000039a0| 6f 6f 6c 73 43 6f 6c 6f | 72 22 20 69 6e 74 6f 20 |oolsColo|r" into |
|000039b0| 63 64 20 66 6c 64 20 22 | 74 6f 6f 6c 73 4c 6f 63 |cd fld "|toolsLoc|
|000039c0| 22 20 6f 66 20 63 64 20 | 22 70 72 65 66 73 22 0d |" of cd |"prefs".|
|000039d0| 65 6c 73 65 20 69 66 20 | 74 68 65 72 65 20 69 73 |else if |there is|
|000039e0| 20 61 20 77 69 6e 64 6f | 77 20 22 48 54 4d 4c 54 | a windo|w "HTMLT|
|000039f0| 6f 6f 6c 73 22 20 74 68 | 65 6e 20 70 75 74 20 74 |ools" th|en put t|
|00003a00| 68 65 20 6c 6f 63 20 6f | 66 20 77 69 6e 64 6f 77 |he loc o|f window|
|00003a10| 20 22 48 54 4d 4c 54 6f | 6f 6c 73 22 20 69 6e 74 | "HTMLTo|ols" int|
|00003a20| 6f 20 63 64 20 66 6c 64 | 20 22 74 6f 6f 6c 73 4c |o cd fld| "toolsL|
|00003a30| 6f 63 22 20 6f 66 20 63 | 64 20 22 70 72 65 66 73 |oc" of c|d "prefs|
|00003a40| 22 0d 70 75 74 20 46 41 | 4c 53 45 20 69 6e 74 6f |".put FA|LSE into|
|00003a50| 20 48 65 43 5f 76 69 7a | 0d 70 75 74 20 46 41 4c | HeC_viz|.put FAL|
|00003a60| 53 45 20 69 6e 74 6f 20 | 48 65 54 5f 76 69 7a 0d |SE into |HeT_viz.|
|00003a70| 69 66 20 74 68 65 72 65 | 20 69 73 20 61 20 77 69 |if there| is a wi|
|00003a80| 6e 64 6f 77 20 22 49 6e | 66 6f 22 20 74 68 65 6e |ndow "In|fo" then|
|00003a90| 20 70 75 74 20 74 68 65 | 20 6c 6f 63 20 6f 66 20 | put the| loc of |
|00003aa0| 77 69 6e 64 6f 77 20 22 | 49 6e 66 6f 22 20 69 6e |window "|Info" in|
|00003ab0| 74 6f 20 63 64 20 66 6c | 64 20 22 69 6e 66 6f 4c |to cd fl|d "infoL|
|00003ac0| 6f 63 22 20 6f 66 20 63 | 64 20 22 70 72 65 66 73 |oc" of c|d "prefs|
|00003ad0| 22 0d 70 75 74 20 46 41 | 4c 53 45 20 69 6e 74 6f |".put FA|LSE into|
|00003ae0| 20 69 6e 66 6f 5f 76 69 | 7a 0d 65 6e 64 20 63 6c | info_vi|z.end cl|
|00003af0| 6f 73 65 50 61 6c 65 74 | 74 65 0d 0d 6f 6e 20 73 |osePalet|te..on s|
|00003b00| 68 6f 77 54 6f 6f 6c 73 | 0d 69 66 20 74 68 65 20 |howTools|.if the |
|00003b10| 73 68 6f 72 74 20 6e 61 | 6d 65 20 6f 66 20 74 68 |short na|me of th|
|00003b20| 69 73 20 62 67 20 ad 20 | 22 45 64 69 74 6f 72 22 |is bg . |"Editor"|
|00003b30| 20 74 68 65 6e 20 65 78 | 69 74 20 73 68 6f 77 54 | then ex|it showT|
|00003b40| 6f 6f 6c 73 0d 67 65 74 | 20 63 64 20 66 6c 64 20 |ools.get| cd fld |
|00003b50| 22 74 6f 6f 6c 73 4c 6f | 63 22 20 6f 66 20 63 64 |"toolsLo|c" of cd|
|00003b60| 20 22 70 72 65 66 73 22 | 0d 69 66 20 69 74 20 3d | "prefs"|.if it =|
|00003b70| 20 22 22 20 6f 72 20 6f | 70 74 69 6f 6e 4b 65 79 | "" or o|ptionKey|
|00003b80| 28 29 3d 64 6f 77 6e 20 | 74 68 65 6e 20 67 65 74 |()=down |then get|
|00003b90| 20 69 74 65 6d 20 31 20 | 6f 66 20 74 68 65 20 6c | item 1 |of the l|
|00003ba0| 6f 63 20 6f 66 20 62 67 | 20 62 74 6e 20 22 5a 6f |oc of bg| btn "Zo|
|00003bb0| 6f 6d 42 6f 78 22 20 2d | 20 32 36 38 26 22 2c 35 |omBox" -| 268&",5|
|00003bc0| 33 22 0d 65 6c 73 65 20 | 67 65 74 20 69 74 0d 69 |3".else |get it.i|
|00003bd0| 66 20 74 68 65 72 65 20 | 69 73 20 61 20 77 69 6e |f there |is a win|
|00003be0| 64 6f 77 20 22 48 54 4d | 4c 54 6f 6f 6c 73 22 20 |dow "HTM|LTools" |
|00003bf0| 74 68 65 6e 20 73 68 6f | 77 20 77 69 6e 64 6f 77 |then sho|w window|
|00003c00| 20 22 48 54 4d 4c 54 6f | 6f 6c 73 22 0d 65 6c 73 | "HTMLTo|ols".els|
|00003c10| 65 20 69 66 20 74 68 65 | 72 65 20 69 73 20 61 20 |e if the|re is a |
|00003c20| 77 69 6e 64 6f 77 20 22 | 48 54 4d 4c 54 6f 6f 6c |window "|HTMLTool|
|00003c30| 73 43 6f 6c 6f 72 22 20 | 74 68 65 6e 20 73 68 6f |sColor" |then sho|
|00003c40| 77 20 77 69 6e 64 6f 77 | 20 22 48 54 4d 4c 54 6f |w window| "HTMLTo|
|00003c50| 6f 6c 73 43 6f 6c 6f 72 | 22 0d 65 6c 73 65 20 69 |olsColor|".else i|
|00003c60| 66 20 28 69 74 65 6d 20 | 31 20 6f 66 20 6c 69 6e |f (item |1 of lin|
|00003c70| 65 20 31 20 6f 66 20 67 | 65 74 4d 6f 64 65 28 29 |e 1 of g|etMode()|
|00003c80| 20 3d 20 22 43 22 29 20 | 74 68 65 6e 20 70 61 6c | = "C") |then pal|
|00003c90| 65 74 74 65 20 22 48 54 | 4d 4c 54 6f 6f 6c 73 43 |ette "HT|MLToolsC|
|00003ca0| 6f 6c 6f 72 22 2c 69 74 | 0d 65 6c 73 65 20 70 61 |olor",it|.else pa|
|00003cb0| 6c 65 74 74 65 20 22 48 | 54 4d 4c 54 6f 6f 6c 73 |lette "H|TMLTools|
|00003cc0| 22 2c 69 74 0d 65 6e 64 | 20 73 68 6f 77 54 6f 6f |",it.end| showToo|
|00003cd0| 6c 73 0d 0d 6f 6e 20 68 | 69 64 65 50 61 6c 65 74 |ls..on h|idePalet|
|00003ce0| 74 65 73 20 6d 6f 64 65 | 0d 67 6c 6f 62 61 6c 20 |tes mode|.global |
|00003cf0| 48 65 54 5f 76 69 7a 2c | 48 65 43 5f 76 69 7a 2c |HeT_viz,|HeC_viz,|
|00003d00| 69 6e 66 6f 5f 76 69 7a | 2c 6d 73 67 5f 76 69 7a |info_viz|,msg_viz|
|00003d10| 0d 70 75 74 20 76 69 7a | 28 22 48 54 4d 4c 54 6f |.put viz|("HTMLTo|
|00003d20| 6f 6c 73 22 29 20 69 6e | 74 6f 20 48 65 54 5f 76 |ols") in|to HeT_v|
|00003d30| 69 7a 0d 69 66 20 48 65 | 54 5f 76 69 7a 20 74 68 |iz.if He|T_viz th|
|00003d40| 65 6e 20 68 69 64 65 20 | 77 69 6e 64 6f 77 20 22 |en hide |window "|
|00003d50| 48 54 4d 4c 54 6f 6f 6c | 73 22 0d 70 75 74 20 76 |HTMLTool|s".put v|
|00003d60| 69 7a 28 22 48 54 4d 4c | 54 6f 6f 6c 73 43 6f 6c |iz("HTML|ToolsCol|
|00003d70| 6f 72 22 29 20 69 6e 74 | 6f 20 48 65 43 5f 76 69 |or") int|o HeC_vi|
|00003d80| 7a 0d 69 66 20 48 65 43 | 5f 76 69 7a 20 74 68 65 |z.if HeC|_viz the|
|00003d90| 6e 20 68 69 64 65 20 77 | 69 6e 64 6f 77 20 22 48 |n hide w|indow "H|
|00003da0| 54 4d 4c 54 6f 6f 6c 73 | 43 6f 6c 6f 72 22 0d 69 |TMLTools|Color".i|
|00003db0| 66 20 74 68 65 72 65 20 | 69 73 20 61 20 77 69 6e |f there |is a win|
|00003dc0| 64 6f 77 20 22 45 6e 74 | 69 74 69 65 73 22 20 74 |dow "Ent|ities" t|
|00003dd0| 68 65 6e 20 63 6c 6f 73 | 65 20 77 69 6e 64 6f 77 |hen clos|e window|
|00003de0| 20 22 45 6e 74 69 74 69 | 65 73 22 0d 69 66 20 6d | "Entiti|es".if m|
|00003df0| 6f 64 65 20 ad 20 22 74 | 6f 6f 6c 73 4f 6e 6c 79 |ode . "t|oolsOnly|
|00003e00| 22 20 74 68 65 6e 0d 70 | 75 74 20 74 68 65 20 76 |" then.p|ut the v|
|00003e10| 69 73 69 62 6c 65 20 6f | 66 20 6d 73 67 20 69 6e |isible o|f msg in|
|00003e20| 74 6f 20 6d 73 67 5f 76 | 69 7a 0d 68 69 64 65 20 |to msg_v|iz.hide |
|00003e30| 6d 73 67 0d 70 75 74 20 | 76 69 7a 28 22 69 6e 66 |msg.put |viz("inf|
|00003e40| 6f 22 29 20 69 6e 74 6f | 20 69 6e 66 6f 5f 76 69 |o") into| info_vi|
|00003e50| 7a 0d 69 66 20 69 6e 66 | 6f 5f 76 69 7a 20 74 68 |z.if inf|o_viz th|
|00003e60| 65 6e 20 68 69 64 65 20 | 77 69 6e 64 6f 77 20 22 |en hide |window "|
|00003e70| 69 6e 66 6f 22 0d 65 6e | 64 20 69 66 0d 65 6e 64 |info".en|d if.end|
|00003e80| 20 68 69 64 65 50 61 6c | 65 74 74 65 73 0d 0d 6f | hidePal|ettes..o|
|00003e90| 6e 20 73 65 65 6b 50 61 | 6c 65 74 74 65 73 0d 67 |n seekPa|lettes.g|
|00003ea0| 6c 6f 62 61 6c 20 48 65 | 54 5f 76 69 7a 2c 48 65 |lobal He|T_viz,He|
|00003eb0| 43 5f 76 69 7a 2c 69 6e | 66 6f 5f 76 69 7a 2c 6d |C_viz,in|fo_viz,m|
|00003ec0| 73 67 5f 76 69 7a 0d 69 | 66 20 48 65 43 5f 76 69 |sg_viz.i|f HeC_vi|
|00003ed0| 7a 20 3d 20 54 52 55 45 | 20 74 68 65 6e 20 73 68 |z = TRUE| then sh|
|00003ee0| 6f 77 54 6f 6f 6c 73 20 | 63 6f 6c 6f 72 0d 65 6c |owTools |color.el|
|00003ef0| 73 65 20 69 66 20 48 65 | 54 5f 76 69 7a 20 3d 20 |se if He|T_viz = |
|00003f00| 54 52 55 45 20 74 68 65 | 6e 20 73 68 6f 77 54 6f |TRUE the|n showTo|
|00003f10| 6f 6c 73 0d 69 66 20 69 | 6e 66 6f 5f 76 69 7a 20 |ols.if i|nfo_viz |
|00003f20| 3d 20 54 52 55 45 20 74 | 68 65 6e 20 73 68 6f 77 |= TRUE t|hen show|
|00003f30| 49 6e 66 6f 0d 69 66 20 | 6d 73 67 5f 76 69 7a 20 |Info.if |msg_viz |
|00003f40| 3d 20 54 52 55 45 20 74 | 68 65 6e 20 73 68 6f 77 |= TRUE t|hen show|
|00003f50| 20 6d 73 67 0d 65 6e 64 | 20 73 65 65 6b 50 61 6c | msg.end| seekPal|
|00003f60| 65 74 74 65 73 0d 0d 6f | 6e 20 63 6c 6f 73 65 50 |ettes..o|n closeP|
|00003f70| 61 6c 65 74 74 65 73 0d | 69 66 20 74 68 65 72 65 |alettes.|if there|
|00003f80| 20 69 73 20 61 20 77 69 | 6e 64 6f 77 20 22 48 54 | is a wi|ndow "HT|
|00003f90| 4d 4c 2e 65 64 69 74 20 | 48 65 6c 70 22 20 74 68 |ML.edit |Help" th|
|00003fa0| 65 6e 20 63 6c 6f 73 65 | 20 77 69 6e 64 6f 77 20 |en close| window |
|00003fb0| 22 48 54 4d 4c 2e 65 64 | 69 74 20 48 65 6c 70 22 |"HTML.ed|it Help"|
|00003fc0| 0d 69 66 20 74 68 65 72 | 65 20 69 73 20 61 20 77 |.if ther|e is a w|
|00003fd0| 69 6e 64 6f 77 20 22 48 | 54 4d 4c 54 6f 6f 6c 73 |indow "H|TMLTools|
|00003fe0| 22 20 74 68 65 6e 20 63 | 6c 6f 73 65 20 77 69 6e |" then c|lose win|
|00003ff0| 64 6f 77 20 22 48 54 4d | 4c 54 6f 6f 6c 73 22 0d |dow "HTM|LTools".|
|00004000| 69 66 20 74 68 65 72 65 | 20 69 73 20 61 20 77 69 |if there| is a wi|
|00004010| 6e 64 6f 77 20 22 48 54 | 4d 4c 54 6f 6f 6c 73 43 |ndow "HT|MLToolsC|
|00004020| 6f 6c 6f 72 22 20 74 68 | 65 6e 20 63 6c 6f 73 65 |olor" th|en close|
|00004030| 20 77 69 6e 64 6f 77 20 | 22 48 54 4d 4c 54 6f 6f | window |"HTMLToo|
|00004040| 6c 73 43 6f 6c 6f 72 22 | 0d 65 6e 64 20 63 6c 6f |lsColor"|.end clo|
|00004050| 73 65 50 61 6c 65 74 74 | 65 73 0d 0d 6f 6e 20 63 |sePalett|es..on c|
|00004060| 6f 6d 6d 61 6e 64 4b 65 | 79 44 6f 77 6e 20 6b 0d |ommandKe|yDown k.|
|00004070| 49 46 20 6b 20 3d 20 22 | 2f 22 20 6f 72 20 6b 20 |IF k = "|/" or k |
|00004080| 3d 20 22 3f 22 20 74 68 | 65 6e 20 48 54 4d 4c 48 |= "?" th|en HTMLH|
|00004090| 65 6c 70 0d 45 4c 53 45 | 20 49 46 20 6b 20 3d 20 |elp.ELSE| IF k = |
|000040a0| 22 30 22 20 74 68 65 6e | 20 73 65 6e 64 20 22 73 |"0" then| send "s|
|000040b0| 65 6c 65 63 74 46 72 6f | 6d 49 6e 64 65 78 20 33 |electFro|mIndex 3|
|000040c0| 36 33 33 22 20 74 6f 20 | 74 68 69 73 20 63 64 20 |633" to |this cd |
|000040d0| 2d 2d 20 af 0d 45 4c 53 | 45 20 69 66 20 73 68 69 |-- ..ELS|E if shi|
|000040e0| 66 74 4b 65 79 28 29 3d | 64 6f 77 6e 20 74 68 65 |ftKey()=|down the|
|000040f0| 6e 0d 69 66 20 6b 20 3d | 20 22 46 22 20 74 68 65 |n.if k =| "F" the|
|00004100| 6e 20 67 6f 20 66 69 72 | 73 74 20 63 64 20 6f 66 |n go fir|st cd of|
|00004110| 20 62 67 20 22 6d 46 22 | 0d 65 6c 73 65 20 69 66 | bg "mF"|.else if|
|00004120| 20 6b 20 3d 20 22 48 22 | 20 74 68 65 6e 20 67 6f | k = "H"| then go|
|00004130| 20 66 69 72 73 74 20 63 | 64 20 6f 66 20 62 67 20 | first c|d of bg |
|00004140| 22 6d 48 22 0d 65 6c 73 | 65 20 69 66 20 6b 20 3d |"mH".els|e if k =|
|00004150| 20 22 42 22 20 74 68 65 | 6e 20 48 54 4d 4c 20 42 | "B" the|n HTML B|
|00004160| 6f 6c 64 0d 65 6c 73 65 | 20 69 66 20 6b 20 3d 20 |old.else| if k = |
|00004170| 22 43 22 20 74 68 65 6e | 20 48 54 4d 4c 20 43 69 |"C" then| HTML Ci|
|00004180| 74 61 74 69 6f 6e 0d 65 | 6c 73 65 20 69 66 20 6b |tation.e|lse if k|
|00004190| 20 3d 20 22 45 22 20 74 | 68 65 6e 20 48 54 4d 4c | = "E" t|hen HTML|
|000041a0| 20 45 6d 70 68 61 73 69 | 73 0d 65 6c 73 65 20 69 | Emphasi|s.else i|
|000041b0| 66 20 6b 20 3d 20 22 49 | 22 20 74 68 65 6e 20 48 |f k = "I|" then H|
|000041c0| 54 4d 4c 20 49 74 61 6c | 69 63 0d 65 6c 73 65 20 |TML Ital|ic.else |
|000041d0| 69 66 20 6b 20 3d 20 22 | 50 22 20 74 68 65 6e 20 |if k = "|P" then |
|000041e0| 48 54 4d 4c 20 50 72 65 | 66 6f 72 6d 61 74 74 65 |HTML Pre|formatte|
|000041f0| 64 0d 65 6c 73 65 20 69 | 66 20 6b 20 3d 20 22 53 |d.else i|f k = "S|
|00004200| 22 20 74 68 65 6e 20 48 | 54 4d 4c 20 22 53 74 72 |" then H|TML "Str|
|00004210| 6f 6e 67 20 45 6d 70 68 | 61 73 69 73 22 0d 65 6c |ong Emph|asis".el|
|00004220| 73 65 20 69 66 20 6b 20 | 3d 20 22 55 22 20 74 68 |se if k |= "U" th|
|00004230| 65 6e 20 48 54 4d 4c 20 | 55 6e 64 65 72 6c 69 6e |en HTML |Underlin|
|00004240| 65 0d 65 6c 73 65 20 70 | 61 73 73 20 63 6f 6d 6d |e.else p|ass comm|
|00004250| 61 6e 64 4b 65 79 44 6f | 77 6e 0d 45 4c 53 45 20 |andKeyDo|wn.ELSE |
|00004260| 69 66 20 73 68 69 66 74 | 4b 65 79 28 29 3d 75 70 |if shift|Key()=up|
|00004270| 20 74 68 65 6e 0d 69 66 | 20 6b 20 3d 20 22 68 22 | then.if| k = "h"|
|00004280| 20 6f 72 20 6b 20 3d 20 | 22 72 22 20 74 68 65 6e | or k = |"r" then|
|00004290| 20 65 78 69 74 20 63 6f | 6d 6d 61 6e 64 4b 65 79 | exit co|mmandKey|
|000042a0| 44 6f 77 6e 0d 65 6c 73 | 65 20 69 66 20 6b 20 3d |Down.els|e if k =|
|000042b0| 20 22 2d 22 20 74 68 65 | 6e 20 48 54 4d 4c 20 43 | "-" the|n HTML C|
|000042c0| 6f 6d 6d 65 6e 74 0d 65 | 6c 73 65 20 69 66 20 6b |omment.e|lse if k|
|000042d0| 20 3d 20 22 69 22 20 74 | 68 65 6e 20 67 6f 20 63 | = "i" t|hen go c|
|000042e0| 64 20 22 49 6e 64 65 78 | 22 0d 65 6c 73 65 20 69 |d "Index|".else i|
|000042f0| 66 20 6b 20 3d 20 22 61 | 22 20 61 6e 64 20 22 66 |f k = "a|" and "f|
|00004300| 69 65 6c 64 22 20 69 73 | 20 69 6e 20 74 68 65 20 |ield" is| in the |
|00004310| 73 65 6c 65 63 74 65 64 | 43 68 75 6e 6b 20 74 68 |selected|Chunk th|
|00004320| 65 6e 20 73 65 6c 65 63 | 74 20 74 65 78 74 20 6f |en selec|t text o|
|00004330| 66 20 74 68 65 20 73 65 | 6c 65 63 74 65 64 46 69 |f the se|lectedFi|
|00004340| 65 6c 64 0d 65 6c 73 65 | 20 69 66 20 6b 20 3d 20 |eld.else| if k = |
|00004350| 22 65 22 20 74 68 65 6e | 20 73 65 74 20 74 68 65 |"e" then| set the|
|00004360| 20 76 69 73 69 62 6c 65 | 20 6f 66 20 73 63 72 6f | visible| of scro|
|00004370| 6c 6c 20 77 69 6e 64 6f | 77 20 74 6f 20 6e 6f 74 |ll windo|w to not|
|00004380| 20 74 68 65 20 76 69 73 | 69 62 6c 65 20 6f 66 20 | the vis|ible of |
|00004390| 73 63 72 6f 6c 6c 20 77 | 69 6e 64 6f 77 0d 65 6c |scroll w|indow.el|
|000043a0| 73 65 20 69 66 20 6b 20 | 3d 20 22 6d 22 20 74 68 |se if k |= "m" th|
|000043b0| 65 6e 20 73 65 74 20 74 | 68 65 20 76 69 73 69 62 |en set t|he visib|
|000043c0| 6c 65 20 6f 66 20 6d 73 | 67 20 74 6f 20 6e 6f 74 |le of ms|g to not|
|000043d0| 20 74 68 65 20 76 69 73 | 69 62 6c 65 20 6f 66 20 | the vis|ible of |
|000043e0| 6d 73 67 0d 65 6c 73 65 | 20 69 66 20 6b 20 3d 20 |msg.else| if k = |
|000043f0| 22 6f 22 20 74 68 65 6e | 20 73 65 6e 64 20 22 69 |"o" then| send "i|
|00004400| 6d 70 22 20 74 6f 20 74 | 68 69 73 20 63 64 0d 65 |mp" to t|his cd.e|
|00004410| 6c 73 65 20 69 66 20 6b | 20 3d 20 22 79 22 20 74 |lse if k| = "y" t|
|00004420| 68 65 6e 20 68 73 0d 65 | 6c 73 65 20 70 61 73 73 |hen hs.e|lse pass|
|00004430| 20 63 6f 6d 6d 61 6e 64 | 4b 65 79 44 6f 77 6e 0d | command|KeyDown.|
|00004440| 45 4c 53 45 20 70 61 73 | 73 20 63 6f 6d 6d 61 6e |ELSE pas|s comman|
|00004450| 64 4b 65 79 44 6f 77 6e | 0d 65 6e 64 20 63 6f 6d |dKeyDown|.end com|
|00004460| 6d 61 6e 64 4b 65 79 44 | 6f 77 6e 0d 0d 6f 6e 20 |mandKeyD|own..on |
|00004470| 72 65 6e 61 6d 65 44 6f | 63 75 6d 65 6e 74 20 74 |renameDo|cument t|
|00004480| 79 70 65 0d 73 65 6e 64 | 20 74 68 65 20 70 61 72 |ype.send| the par|
|00004490| 61 6d 73 20 74 6f 20 62 | 67 20 62 74 6e 20 69 64 |ams to b|g btn id|
|000044a0| 20 32 31 20 6f 66 20 63 | 64 20 31 20 6f 66 20 62 | 21 of c|d 1 of b|
|000044b0| 67 20 22 45 64 69 74 6f | 72 22 0d 65 6e 64 20 72 |g "Edito|r".end r|
|000044c0| 65 6e 61 6d 65 44 6f 63 | 75 6d 65 6e 74 0d 0d 6f |enameDoc|ument..o|
|000044d0| 6e 20 63 68 61 6e 67 65 | 50 61 74 68 20 63 64 49 |n change|Path cdI|
|000044e0| 44 0d 69 66 20 63 64 49 | 44 20 3d 20 22 22 20 74 |D.if cdI|D = "" t|
|000044f0| 68 65 6e 20 70 75 74 20 | 74 68 65 20 73 68 6f 72 |hen put |the shor|
|00004500| 74 20 69 64 20 6f 66 20 | 74 68 69 73 20 63 64 20 |t id of |this cd |
|00004510| 69 6e 74 6f 20 63 64 49 | 44 0d 70 75 74 20 66 6c |into cdI|D.put fl|
|00004520| 64 20 22 74 79 70 65 22 | 20 6f 66 20 63 64 20 69 |d "type"| of cd i|
|00004530| 64 20 63 64 49 44 20 69 | 6e 74 6f 20 74 79 70 0d |d cdID i|nto typ.|
|00004540| 70 75 74 20 66 6c 64 20 | 22 66 75 6c 6c 50 61 74 |put fld |"fullPat|
|00004550| 68 4e 61 6d 65 22 20 6f | 66 20 63 64 20 69 64 20 |hName" o|f cd id |
|00004560| 63 64 49 44 20 69 6e 74 | 6f 20 6f 6c 64 50 61 74 |cdID int|o oldPat|
|00004570| 68 0d 61 6e 73 77 65 72 | 20 63 61 73 65 28 31 2c |h.answer| case(1,|
|00004580| 74 79 70 29 26 22 20 50 | 41 54 48 3a 22 26 72 65 |typ)&" P|ATH:"&re|
|00004590| 74 75 72 6e 26 22 43 68 | 61 6e 67 65 20 74 68 65 |turn&"Ch|ange the|
|000045a0| 20 74 61 72 67 65 74 20 | 70 61 74 68 20 6f 66 20 | target |path of |
|000045b0| 74 68 69 73 20 22 26 74 | 79 70 26 22 3f 22 26 72 |this "&t|yp&"?"&r|
|000045c0| 65 74 75 72 6e 26 72 65 | 74 75 72 6e 26 22 20 20 |eturn&re|turn&" |
|000045d0| 20 d4 22 26 28 66 6c 64 | 20 22 74 69 74 6c 65 22 | ."&(fld| "title"|
|000045e0| 20 6f 66 20 63 64 20 69 | 64 20 63 64 49 44 29 26 | of cd i|d cdID)&|
|000045f0| c2 0d 22 d5 22 26 72 65 | 74 75 72 6e 26 72 65 74 |.."."&re|turn&ret|
|00004600| 75 72 6e 26 22 54 68 69 | 73 20 77 69 6c 6c 20 6e |urn&"Thi|s will n|
|00004610| 6f 74 20 65 78 70 6f 72 | 74 20 74 68 65 20 22 26 |ot expor|t the "&|
|00004620| 74 79 70 26 22 2c 20 22 | 26 22 6f 6e 6c 79 20 73 |typ&", "|&"only s|
|00004630| 70 65 63 69 66 79 20 69 | 74 73 20 69 6e 74 65 6e |pecify i|ts inten|
|00004640| 64 65 64 20 6c 6f 63 61 | 74 69 6f 6e 2e 22 20 77 |ded loca|tion." w|
|00004650| 69 74 68 20 22 43 61 6e | 63 65 6c 22 20 6f 72 20 |ith "Can|cel" or |
|00004660| 22 43 6c 65 61 72 22 20 | 6f 72 20 22 43 68 61 6e |"Clear" |or "Chan|
|00004670| 67 65 22 0d 69 66 20 69 | 74 20 3d 20 22 43 6c 65 |ge".if i|t = "Cle|
|00004680| 61 72 22 20 74 68 65 6e | 0d 70 75 74 20 22 22 20 |ar" then|.put "" |
|00004690| 69 6e 74 6f 20 66 6c 64 | 20 22 66 75 6c 6c 50 61 |into fld| "fullPa|
|000046a0| 74 68 4e 61 6d 65 22 20 | 6f 66 20 63 64 20 69 64 |thName" |of cd id|
|000046b0| 20 63 64 49 44 0d 73 65 | 74 49 6e 64 65 78 65 64 | cdID.se|tIndexed|
|000046c0| 20 46 41 4c 53 45 0d 65 | 6c 73 65 20 69 66 20 69 | FALSE.e|lse if i|
|000046d0| 74 20 3d 20 22 43 68 61 | 6e 67 65 22 20 74 68 65 |t = "Cha|nge" the|
|000046e0| 6e 0d 67 65 74 20 66 75 | 6c 6c 53 46 50 61 63 6b |n.get fu|llSFPack|
|000046f0| 28 22 46 22 2c 22 48 69 | 6c 69 74 65 20 74 68 65 |("F","Hi|lite the|
|00004700| 20 66 6f 6c 64 65 72 20 | 66 6f 72 20 74 68 69 73 | folder |for this|
|00004710| 20 22 26 74 79 70 26 22 | 2c 20 74 68 65 6e 20 63 | "&typ&"|, then c|
|00004720| 6c 69 63 6b 20 d2 53 65 | 6c 65 63 74 d3 22 29 0d |lick .Se|lect.").|
|00004730| 69 66 20 69 74 20 ad 20 | 22 22 20 74 68 65 6e 0d |if it . |"" then.|
|00004740| 70 75 74 20 69 74 20 26 | 20 66 6c 64 20 22 74 69 |put it &| fld "ti|
|00004750| 74 6c 65 22 20 6f 66 20 | 63 64 20 69 64 20 63 64 |tle" of |cd id cd|
|00004760| 49 44 20 69 6e 74 6f 20 | 66 6c 64 20 22 66 75 6c |ID into |fld "ful|
|00004770| 6c 50 61 74 68 4e 61 6d | 65 22 20 6f 66 20 63 64 |lPathNam|e" of cd|
|00004780| 20 69 64 20 63 64 49 44 | 0d 69 66 20 66 6c 64 20 | id cdID|.if fld |
|00004790| 22 66 75 6c 6c 50 61 74 | 68 4e 61 6d 65 22 20 6f |"fullPat|hName" o|
|000047a0| 66 20 63 64 20 69 64 20 | 63 64 49 44 20 ad 20 6f |f cd id |cdID . o|
|000047b0| 6c 64 50 61 74 68 20 74 | 68 65 6e 20 73 65 74 49 |ldPath t|hen setI|
|000047c0| 6e 64 65 78 65 64 20 46 | 41 4c 53 45 0d 62 69 6e |ndexed F|ALSE.bin|
|000047d0| 6b 0d 65 6e 64 20 69 66 | 0d 65 6e 64 20 69 66 0d |k.end if|.end if.|
|000047e0| 65 6e 64 20 63 68 61 6e | 67 65 50 61 74 68 0d 0d |end chan|gePath..|
|000047f0| 6f 6e 20 64 6f 4d 65 6e | 75 20 69 0d 69 66 20 69 |on doMen|u i.if i|
|00004800| 20 3d 20 22 4e 65 77 20 | 42 61 63 6b 67 72 6f 75 | = "New |Backgrou|
|00004810| 6e 64 22 20 74 68 65 6e | 20 62 65 65 70 0d 65 6c |nd" then| beep.el|
|00004820| 73 65 20 69 66 20 69 20 | 3d 20 22 49 6d 70 6f 72 |se if i |= "Impor|
|00004830| 74 20 44 6f 63 75 6d 65 | 6e 74 c9 22 20 74 68 65 |t Docume|nt." the|
|00004840| 6e 0d 67 6f 20 6c 61 73 | 74 20 63 64 20 6f 66 20 |n.go las|t cd of |
|00004850| 62 67 20 22 45 64 69 74 | 6f 72 22 0d 73 65 6e 64 |bg "Edit|or".send|
|00004860| 20 22 69 6d 70 22 20 74 | 6f 20 74 68 69 73 20 63 | "imp" t|o this c|
|00004870| 64 0d 65 6c 73 65 20 69 | 66 20 69 20 3d 20 22 45 |d.else i|f i = "E|
|00004880| 78 70 6f 72 74 20 44 6f | 63 75 6d 65 6e 74 c9 22 |xport Do|cument."|
|00004890| 20 74 68 65 6e 0d 69 66 | 20 28 74 68 65 20 73 68 | then.if| (the sh|
|000048a0| 6f 72 74 20 69 64 20 6f | 66 20 74 68 69 73 20 62 |ort id o|f this b|
|000048b0| 67 20 3d 20 33 36 33 33 | 29 20 74 68 65 6e 20 73 |g = 3633|) then s|
|000048c0| 65 6e 64 20 22 65 78 70 | 22 26 26 74 68 65 20 73 |end "exp|"&&the s|
|000048d0| 68 6f 72 74 20 69 64 20 | 6f 66 20 74 68 69 73 20 |hort id |of this |
|000048e0| 63 64 20 74 6f 20 74 68 | 69 73 20 63 64 0d 65 6c |cd to th|is cd.el|
|000048f0| 73 65 20 62 65 65 70 0d | 65 6c 73 65 20 69 66 20 |se beep.|else if |
|00004900| 69 20 3d 20 22 45 78 70 | 6f 72 74 20 44 6f 63 75 |i = "Exp|ort Docu|
|00004910| 6d 65 6e 74 20 41 73 c9 | 22 20 74 68 65 6e 0d 69 |ment As.|" then.i|
|00004920| 66 20 28 74 68 65 20 73 | 68 6f 72 74 20 69 64 20 |f (the s|hort id |
|00004930| 6f 66 20 74 68 69 73 20 | 62 67 20 3d 20 33 36 33 |of this |bg = 363|
|00004940| 33 29 20 74 68 65 6e 20 | 73 65 6e 64 20 22 65 78 |3) then |send "ex|
|00004950| 70 22 26 26 74 68 65 20 | 73 68 6f 72 74 20 69 64 |p"&&the |short id|
|00004960| 20 6f 66 20 74 68 69 73 | 20 63 64 20 74 6f 20 74 | of this| cd to t|
|00004970| 68 69 73 20 63 64 0d 65 | 6c 73 65 20 62 65 65 70 |his cd.e|lse beep|
|00004980| 0d 65 6c 73 65 20 69 66 | 20 69 20 3d 20 22 43 6f |.else if| i = "Co|
|00004990| 6d 70 61 63 74 20 53 74 | 61 63 6b 22 20 74 68 65 |mpact St|ack" the|
|000049a0| 6e 0d 63 6c 6f 73 65 50 | 61 6c 65 74 74 65 73 0d |n.closeP|alettes.|
|000049b0| 70 61 73 73 20 64 6f 4d | 65 6e 75 0d 65 6c 73 65 |pass doM|enu.else|
|000049c0| 20 70 61 73 73 20 64 6f | 4d 65 6e 75 0d 65 6e 64 | pass do|Menu.end|
|000049d0| 20 64 6f 4d 65 6e 75 0d | 0d 6f 6e 20 69 64 6c 65 | doMenu.|.on idle|
|000049e0| 0d 69 66 20 74 68 65 72 | 65 20 69 73 20 61 20 77 |.if ther|e is a w|
|000049f0| 69 6e 64 6f 77 20 22 70 | 72 6f 67 72 65 73 73 22 |indow "p|rogress"|
|00004a00| 20 74 68 65 6e 20 63 6c | 6f 73 65 20 77 69 6e 64 | then cl|ose wind|
|00004a10| 6f 77 20 22 70 72 6f 67 | 72 65 73 73 22 0d 70 61 |ow "prog|ress".pa|
|00004a20| 73 73 20 69 64 6c 65 0d | 65 6e 64 20 69 64 6c 65 |ss idle.|end idle|
|00004a30| 0d 0d 6f 6e 20 73 68 6f | 77 41 62 6f 75 74 20 74 |..on sho|wAbout t|
|00004a40| 68 65 54 69 6d 65 0d 69 | 66 20 74 68 65 54 69 6d |heTime.i|f theTim|
|00004a50| 65 20 3d 20 22 22 20 74 | 68 65 6e 20 70 75 74 20 |e = "" t|hen put |
|00004a60| 39 39 39 20 69 6e 74 6f | 20 74 68 65 54 69 6d 65 |999 into| theTime|
|00004a70| 0d 69 66 20 6f 70 74 69 | 6f 6e 4b 65 79 28 29 3d |.if opti|onKey()=|
|00004a80| 75 70 20 61 6e 64 20 28 | 69 74 65 6d 20 31 20 6f |up and (|item 1 o|
|00004a90| 66 20 6c 69 6e 65 20 31 | 20 6f 66 20 67 65 74 4d |f line 1| of getM|
|00004aa0| 6f 64 65 28 29 20 3d 20 | 22 43 22 29 20 74 68 65 |ode() = |"C") the|
|00004ab0| 6e 20 73 68 6f 77 57 69 | 6e 64 20 22 41 62 6f 75 |n showWi|nd "Abou|
|00004ac0| 74 42 6f 78 22 2c 74 68 | 65 54 69 6d 65 0d 65 6c |tBox",th|eTime.el|
|00004ad0| 73 65 20 73 68 6f 77 57 | 69 6e 64 20 22 41 62 6f |se showW|ind "Abo|
|00004ae0| 75 74 42 6f 78 42 57 22 | 2c 74 68 65 54 69 6d 65 |utBoxBW"|,theTime|
|00004af0| 0d 65 6e 64 20 73 68 6f | 77 41 62 6f 75 74 0d 0d |.end sho|wAbout..|
|00004b00| 6f 6e 20 73 68 6f 77 57 | 69 6e 64 20 77 69 6e 64 |on showW|ind wind|
|00004b10| 2c 74 69 6d 65 0d 67 65 | 74 20 74 68 65 20 74 69 |,time.ge|t the ti|
|00004b20| 63 6b 73 0d 70 69 63 74 | 75 72 65 20 77 69 6e 64 |cks.pict|ure wind|
|00004b30| 2c 72 65 73 6f 75 72 63 | 65 2c 73 68 61 64 6f 77 |,resourc|e,shadow|
|00004b40| 2c 66 61 6c 73 65 2c 2c | 74 72 75 65 0d 69 66 20 |,false,,|true.if |
|00004b50| 74 68 65 20 72 65 73 75 | 6c 74 20 ad 20 22 22 20 |the resu|lt . "" |
|00004b60| 74 68 65 6e 20 61 6e 73 | 77 65 72 20 22 45 52 52 |then ans|wer "ERR|
|00004b70| 4f 52 22 26 72 65 74 75 | 72 6e 26 74 68 65 20 72 |OR"&retu|rn&the r|
|00004b80| 65 73 75 6c 74 26 72 65 | 74 75 72 6e 26 22 55 6e |esult&re|turn&"Un|
|00004b90| 61 62 6c 65 20 74 6f 20 | 64 69 73 70 6c 61 79 20 |able to |display |
|00004ba0| 67 72 61 70 68 69 63 2e | 20 41 6c 6c 6f 63 61 74 |graphic.| Allocat|
|00004bb0| 65 20 6d 6f 72 65 20 6d | 65 6d 6f 72 79 20 74 6f |e more m|emory to|
|00004bc0| 20 74 68 69 73 20 61 70 | 70 6c 69 63 61 74 69 6f | this ap|plicatio|
|00004bd0| 6e 2e 22 0d 65 6c 73 65 | 0d 73 68 6f 77 20 77 69 |n.".else|.show wi|
|00004be0| 6e 64 6f 77 20 77 69 6e | 64 0d 77 61 69 74 20 75 |ndow win|d.wait u|
|00004bf0| 6e 74 69 6c 20 74 68 65 | 20 6d 6f 75 73 65 43 6c |ntil the| mouseCl|
|00004c00| 69 63 6b 20 6f 72 20 74 | 68 65 20 74 69 63 6b 73 |ick or t|he ticks|
|00004c10| 20 2d 20 69 74 20 3e 20 | 28 74 69 6d 65 20 2a 20 | - it > |(time * |
|00004c20| 36 30 29 0d 65 6e 64 20 | 69 66 0d 76 69 73 75 61 |60).end |if.visua|
|00004c30| 6c 20 7a 6f 6f 6d 20 63 | 6c 6f 73 65 0d 69 66 20 |l zoom c|lose.if |
|00004c40| 74 68 65 72 65 20 69 73 | 20 61 20 77 69 6e 64 6f |there is| a windo|
|00004c50| 77 20 77 69 6e 64 20 74 | 68 65 6e 20 63 6c 6f 73 |w wind t|hen clos|
|00004c60| 65 20 77 69 6e 64 6f 77 | 20 77 69 6e 64 0d 65 6e |e window| wind.en|
|00004c70| 64 20 73 68 6f 77 57 69 | 6e 64 0d 0d 6f 6e 20 6d |d showWi|nd..on m|
|00004c80| 6f 75 73 65 44 6f 77 6e | 49 6e 50 69 63 74 75 72 |ouseDown|InPictur|
|00004c90| 65 20 77 69 6e 64 0d 63 | 6c 6f 73 65 20 77 69 6e |e wind.c|lose win|
|00004ca0| 64 6f 77 20 77 69 6e 64 | 0d 65 6e 64 20 6d 6f 75 |dow wind|.end mou|
|00004cb0| 73 65 44 6f 77 6e 49 6e | 50 69 63 74 75 72 65 0d |seDownIn|Picture.|
|00004cc0| 0d 6f 6e 20 63 6f 6d 70 | 61 63 74 53 74 61 63 6b |.on comp|actStack|
|00004cd0| 20 6e 6f 77 0d 67 65 74 | 20 74 68 65 20 73 65 6c | now.get| the sel|
|00004ce0| 65 63 74 65 64 54 65 78 | 74 20 6f 66 20 63 64 20 |ectedTex|t of cd |
|00004cf0| 62 74 6e 20 69 64 20 33 | 30 20 6f 66 20 63 64 20 |btn id 3|0 of cd |
|00004d00| 22 70 72 65 66 73 22 0d | 69 66 20 69 74 20 3d 20 |"prefs".|if it = |
|00004d10| 22 41 6c 77 61 79 73 22 | 20 74 68 65 6e 20 67 65 |"Always"| then ge|
|00004d20| 74 20 22 3e 30 25 22 0d | 65 6c 73 65 0d 64 65 6c |t ">0%".|else.del|
|00004d30| 65 74 65 20 66 69 72 73 | 74 20 63 68 61 72 20 6f |ete firs|t char o|
|00004d40| 66 20 69 74 0d 64 65 6c | 65 74 65 20 6c 61 73 74 |f it.del|ete last|
|00004d50| 20 63 68 61 72 20 6f 66 | 20 69 74 0d 70 75 74 20 | char of| it.put |
|00004d60| 69 74 2f 31 30 30 20 69 | 6e 74 6f 20 74 68 72 65 |it/100 i|nto thre|
|00004d70| 73 68 6f 6c 64 0d 65 6e | 64 20 69 66 0d 69 66 20 |shold.en|d if.if |
|00004d80| 28 74 68 65 20 66 72 65 | 65 53 69 7a 65 20 6f 66 |(the fre|eSize of|
|00004d90| 20 74 68 69 73 20 73 74 | 61 63 6b 2f 74 68 65 20 | this st|ack/the |
|00004da0| 73 69 7a 65 20 6f 66 20 | 74 68 69 73 20 73 74 61 |size of |this sta|
|00004db0| 63 6b 20 3e 20 74 68 72 | 65 73 68 6f 6c 64 29 20 |ck > thr|eshold) |
|00004dc0| 6f 72 20 6e 6f 77 20 3d | 20 54 52 55 45 0d 74 68 |or now =| TRUE.th|
|00004dd0| 65 6e 20 64 6f 4d 65 6e | 75 20 22 43 6f 6d 70 61 |en doMen|u "Compa|
|00004de0| 63 74 20 53 74 61 63 6b | 22 0d 65 6e 64 20 63 6f |ct Stack|".end co|
|00004df0| 6d 70 61 63 74 53 74 61 | 63 6b 0d 0d 6f 6e 20 70 |mpactSta|ck..on p|
|00004e00| 72 69 6e 74 54 65 78 74 | 0d 69 66 20 74 68 65 20 |rintText|.if the |
|00004e10| 73 68 6f 72 74 20 6e 61 | 6d 65 20 6f 66 20 74 68 |short na|me of th|
|00004e20| 69 73 20 62 67 20 3d 20 | 22 45 64 69 74 6f 72 22 |is bg = |"Editor"|
|00004e30| 20 74 68 65 6e 0d 6f 70 | 65 6e 20 72 65 70 6f 72 | then.op|en repor|
|00004e40| 74 20 70 72 69 6e 74 69 | 6e 67 20 77 69 74 68 20 |t printi|ng with |
|00004e50| 74 65 6d 70 6c 61 74 65 | 20 28 74 68 65 20 73 65 |template| (the se|
|00004e60| 6c 65 63 74 65 64 54 65 | 78 74 20 6f 66 20 63 64 |lectedTe|xt of cd|
|00004e70| 20 62 74 6e 20 69 64 20 | 38 37 20 6f 66 20 63 64 | btn id |87 of cd|
|00004e80| 20 22 50 72 65 66 73 22 | 29 0d 70 72 69 6e 74 20 | "Prefs"|).print |
|00004e90| 74 68 69 73 20 63 64 0d | 63 6c 6f 73 65 20 70 72 |this cd.|close pr|
|00004ea0| 69 6e 74 69 6e 67 0d 65 | 6c 73 65 20 62 65 65 70 |inting.e|lse beep|
|00004eb0| 0d 65 6e 64 20 70 72 69 | 6e 74 54 65 78 74 0d 0d |.end pri|ntText..|
|00004ec0| 2d 2d 20 48 54 4d 4c 20 | 48 65 6c 70 0d 0d 6f 6e |-- HTML |Help..on|
|00004ed0| 20 48 54 4d 4c 48 65 6c | 70 20 69 0d 73 65 6e 64 | HTMLHel|p i.send|
|00004ee0| 20 74 68 65 20 70 61 72 | 61 6d 73 20 74 6f 20 62 | the par|ams to b|
|00004ef0| 67 20 62 74 6e 20 69 64 | 20 32 31 20 6f 66 20 63 |g btn id| 21 of c|
|00004f00| 64 20 31 20 6f 66 20 62 | 67 20 22 45 64 69 74 6f |d 1 of b|g "Edito|
|00004f10| 72 22 0d 65 6e 64 20 48 | 54 4d 4c 48 65 6c 70 0d |r".end H|TMLHelp.|
|00004f20| 0d 6f 6e 20 70 61 6c 65 | 74 74 65 48 65 6c 70 0d |.on pale|tteHelp.|
|00004f30| 69 66 20 74 68 65 20 73 | 68 6f 72 74 20 6e 61 6d |if the s|hort nam|
|00004f40| 65 20 6f 66 20 74 68 69 | 73 20 62 67 20 3d 20 22 |e of thi|s bg = "|
|00004f50| 45 64 69 74 6f 72 22 20 | 74 68 65 6e 20 73 65 6e |Editor" |then sen|
|00004f60| 64 20 64 65 48 4c 20 74 | 6f 20 74 68 69 73 20 63 |d deHL t|o this c|
|00004f70| 64 0d 69 66 20 6f 70 74 | 69 6f 6e 4b 65 79 28 29 |d.if opt|ionKey()|
|00004f80| 3d 75 70 20 74 68 65 6e | 0d 68 69 64 65 50 61 6c |=up then|.hidePal|
|00004f90| 65 74 74 65 73 0d 73 68 | 6f 77 44 69 61 6c 6f 67 |ettes.sh|owDialog|
|00004fa0| 20 35 2c 34 37 34 32 2c | 31 31 2c 67 59 28 31 34 | 5,4742,|11,gY(14|
|00004fb0| 33 29 2c 67 58 28 31 34 | 33 29 0d 73 65 65 6b 50 |3),gX(14|3).seekP|
|00004fc0| 61 6c 65 74 74 65 73 0d | 65 6c 73 65 20 73 68 6f |alettes.|else sho|
|00004fd0| 77 57 69 6e 64 20 22 57 | 69 6e 64 6f 77 45 6c 65 |wWind "W|indowEle|
|00004fe0| 6d 65 6e 74 73 22 2c 39 | 39 39 0d 65 6e 64 20 70 |ments",9|99.end p|
|00004ff0| 61 6c 65 74 74 65 48 65 | 6c 70 0d 0d 6f 6e 20 63 |aletteHe|lp..on c|
|00005000| 6c 69 63 6b 49 6e 54 65 | 78 74 20 74 68 65 57 6f |lickInTe|xt theWo|
|00005010| 72 64 2c 57 4e 61 6d 65 | 2c 77 2c 73 31 2c 73 32 |rd,WName|,w,s1,s2|
|00005020| 2c 66 2c 73 32 2c 74 68 | 65 53 74 79 6c 65 0d 69 |,f,s2,th|eStyle.i|
|00005030| 66 20 57 4e 61 6d 65 20 | 3d 20 22 49 6e 66 6f 22 |f WName |= "Info"|
|00005040| 20 74 68 65 6e 20 73 65 | 74 49 6e 66 6f 54 65 78 | then se|tInfoTex|
|00005050| 74 0d 65 6c 73 65 20 69 | 66 20 74 68 65 53 74 79 |t.else i|f theSty|
|00005060| 6c 65 20 63 6f 6e 74 61 | 69 6e 73 20 22 67 72 6f |le conta|ins "gro|
|00005070| 75 70 22 20 61 6e 64 20 | 74 68 65 53 74 79 6c 65 |up" and |theStyle|
|00005080| 20 63 6f 6e 74 61 69 6e | 73 20 22 75 6e 64 65 72 | contain|s "under|
|00005090| 6c 69 6e 65 22 20 74 68 | 65 6e 20 48 54 4d 4c 48 |line" th|en HTMLH|
|000050a0| 65 6c 70 20 74 68 65 57 | 6f 72 64 0d 65 6e 64 20 |elp theW|ord.end |
|000050b0| 63 6c 69 63 6b 49 6e 54 | 65 78 74 0d 0d 6f 6e 20 |clickInT|ext..on |
|000050c0| 63 6c 6f 73 65 54 65 78 | 74 6f 69 64 20 57 4e 61 |closeTex|toid WNa|
|000050d0| 6d 65 0d 69 66 20 57 4e | 61 6d 65 20 69 73 20 22 |me.if WN|ame is "|
|000050e0| 4e 6f 74 65 22 20 74 68 | 65 6e 0d 69 66 20 6e 6f |Note" th|en.if no|
|000050f0| 74 20 74 68 65 20 6c 6f | 63 6b 54 65 78 74 20 6f |t the lo|ckText o|
|00005100| 66 20 77 69 6e 64 6f 77 | 20 22 4e 6f 74 65 22 20 |f window| "Note" |
|00005110| 74 68 65 6e 0d 61 6e 73 | 77 65 72 20 22 53 61 76 |then.ans|wer "Sav|
|00005120| 65 20 63 68 61 6e 67 65 | 73 20 74 6f 20 4e 6f 74 |e change|s to Not|
|00005130| 65 3f 22 20 77 69 74 68 | 20 22 43 61 6e 63 65 6c |e?" with| "Cancel|
|00005140| 22 20 6f 72 20 22 53 61 | 76 65 22 0d 69 66 20 69 |" or "Sa|ve".if i|
|00005150| 74 20 3d 20 22 53 61 76 | 65 22 20 74 68 65 6e 0d |t = "Sav|e" then.|
|00005160| 6c 6f 63 6b 20 73 63 72 | 65 65 6e 0d 6c 6f 63 6b |lock scr|een.lock|
|00005170| 20 6d 65 73 73 61 67 65 | 73 0d 70 75 73 68 20 63 | message|s.push c|
|00005180| 64 0d 67 6f 20 63 64 20 | 22 69 6e 64 65 78 22 0d |d.go cd |"index".|
|00005190| 73 65 74 20 66 69 65 6c | 64 54 72 61 6e 73 66 65 |set fiel|dTransfe|
|000051a0| 72 20 6f 66 20 77 69 6e | 64 6f 77 20 22 4e 6f 74 |r of win|dow "Not|
|000051b0| 65 22 20 74 6f 20 22 63 | 64 20 66 6c 64 20 69 64 |e" to "c|d fld id|
|000051c0| 20 37 22 0d 70 6f 70 20 | 63 64 0d 75 6e 6c 6f 63 | 7".pop |cd.unloc|
|000051d0| 6b 20 73 63 72 65 65 6e | 0d 62 69 6e 6b 0d 65 6e |k screen|.bink.en|
|000051e0| 64 20 69 66 0d 65 6e 64 | 20 69 66 0d 65 6e 64 20 |d if.end| if.end |
|000051f0| 69 66 0d 65 6e 64 20 63 | 6c 6f 73 65 54 65 78 74 |if.end c|loseText|
|00005200| 6f 69 64 0d 0d 6f 6e 20 | 73 65 74 49 6e 64 65 78 |oid..on |setIndex|
|00005210| 65 64 20 6d 6f 64 65 0d | 67 6c 6f 62 61 6c 20 69 |ed mode.|global i|
|00005220| 6e 64 65 78 65 64 0d 69 | 66 20 6d 6f 64 65 20 74 |ndexed.i|f mode t|
|00005230| 68 65 6e 20 67 65 74 20 | 34 32 33 30 20 65 6c 73 |hen get |4230 els|
|00005240| 65 20 67 65 74 20 34 32 | 31 32 0d 73 65 74 20 74 |e get 42|12.set t|
|00005250| 68 65 20 69 63 6f 6e 20 | 6f 66 20 63 64 20 62 74 |he icon |of cd bt|
|00005260| 6e 20 69 64 20 32 31 20 | 6f 66 20 63 64 20 22 69 |n id 21 |of cd "i|
|00005270| 6e 64 65 78 22 20 74 6f | 20 69 74 0d 70 75 74 20 |ndex" to| it.put |
|00005280| 6d 6f 64 65 20 69 6e 74 | 6f 20 69 6e 64 65 78 65 |mode int|o indexe|
|00005290| 64 0d 65 6e 64 20 73 65 | 74 49 6e 64 65 78 65 64 |d.end se|tIndexed|
|000052a0| 0d 0d 6f 6e 20 73 65 6c | 65 63 74 46 72 6f 6d 49 |..on sel|ectFromI|
|000052b0| 6e 64 65 78 20 62 67 49 | 44 2c 6e 6f 4d 61 73 74 |ndex bgI|D,noMast|
|000052c0| 65 72 48 46 0d 67 6c 6f | 62 61 6c 20 69 6e 64 65 |erHF.glo|bal inde|
|000052d0| 78 65 64 2c 69 6e 64 65 | 78 4c 69 73 74 2c 64 6f |xed,inde|xList,do|
|000052e0| 63 52 65 66 0d 69 66 20 | 69 6e 64 65 78 65 64 20 |cRef.if |indexed |
|000052f0| ad 20 54 52 55 45 20 74 | 68 65 6e 20 69 6e 64 65 |. TRUE t|hen inde|
|00005300| 78 53 74 61 63 6b 0d 69 | 66 20 62 67 49 44 20 ad |xStack.i|f bgID .|
|00005310| 20 33 36 33 33 20 74 68 | 65 6e 0d 69 66 20 74 68 | 3633 th|en.if th|
|00005320| 65 20 73 68 6f 72 74 20 | 69 64 20 6f 66 20 74 68 |e short |id of th|
|00005330| 69 73 20 62 67 20 3d 20 | 62 67 49 44 20 74 68 65 |is bg = |bgID the|
|00005340| 6e 20 67 65 74 20 6e 75 | 6d 62 65 72 28 74 68 69 |n get nu|mber(thi|
|00005350| 73 20 63 64 29 20 2d 20 | 6e 75 6d 62 65 72 28 66 |s cd) - |number(f|
|00005360| 69 72 73 74 20 63 64 20 | 69 6e 20 74 68 69 73 20 |irst cd |in this |
|00005370| 62 67 29 20 2b 20 31 0d | 65 6c 73 65 20 67 65 74 |bg) + 1.|else get|
|00005380| 20 31 0d 70 75 74 20 63 | 61 72 64 4c 69 73 74 28 | 1.put c|ardList(|
|00005390| 62 67 49 44 29 20 69 6e | 74 6f 20 74 68 65 4c 69 |bgID) in|to theLi|
|000053a0| 73 74 0d 65 6c 73 65 0d | 67 65 74 20 31 0d 69 66 |st.else.|get 1.if|
|000053b0| 20 6e 6f 4d 61 73 74 65 | 72 48 46 20 3d 20 54 52 | noMaste|rHF = TR|
|000053c0| 55 45 20 74 68 65 6e 20 | 70 75 74 20 6c 69 6e 65 |UE then |put line|
|000053d0| 20 31 20 74 6f 20 64 6f | 63 43 6f 75 6e 74 28 29 | 1 to do|cCount()|
|000053e0| 20 6f 66 20 69 6e 64 65 | 78 4c 69 73 74 20 69 6e | of inde|xList in|
|000053f0| 74 6f 20 74 68 65 4c 69 | 73 74 0d 65 6c 73 65 20 |to theLi|st.else |
|00005400| 70 75 74 20 69 6e 64 65 | 78 4c 69 73 74 20 69 6e |put inde|xList in|
|00005410| 74 6f 20 74 68 65 4c 69 | 73 74 0d 65 6e 64 20 69 |to theLi|st.end i|
|00005420| 66 0d 73 68 6f 77 44 69 | 61 6c 6f 67 20 37 2c 34 |f.showDi|alog 7,4|
|00005430| 37 34 38 2c 22 43 68 6f | 6f 73 65 20 61 20 64 6f |748,"Cho|ose a do|
|00005440| 63 75 6d 65 6e 74 3a 22 | 2c 43 68 69 63 61 67 6f |cument:"|,Chicago|
|00005450| 2c 31 32 2c 74 68 65 4c | 69 73 74 2c 69 74 2c 22 |,12,theL|ist,it,"|
|00005460| 6f 6e 65 22 2c 67 59 28 | 31 33 32 29 2c 67 58 28 |one",gY(|132),gX(|
|00005470| 31 31 31 29 0d 67 65 74 | 20 74 68 65 20 72 65 73 |111).get| the res|
|00005480| 75 6c 74 0d 69 66 20 6c | 69 6e 65 20 31 20 6f 66 |ult.if l|ine 1 of|
|00005490| 20 69 74 20 3d 20 32 20 | 74 68 65 6e 20 65 78 69 | it = 2 |then exi|
|000054a0| 74 20 73 65 6c 65 63 74 | 46 72 6f 6d 49 6e 64 65 |t select|FromInde|
|000054b0| 78 0d 65 6c 73 65 20 67 | 6f 20 63 64 20 69 64 20 |x.else g|o cd id |
|000054c0| 28 6c 69 6e 65 20 28 6c | 69 6e 65 20 32 20 6f 66 |(line (l|ine 2 of|
|000054d0| 20 69 74 29 20 6f 66 20 | 64 6f 63 52 65 66 29 0d | it) of |docRef).|
|000054e0| 65 6e 64 20 73 65 6c 65 | 63 74 46 72 6f 6d 49 6e |end sele|ctFromIn|
|000054f0| 64 65 78 0d 0d 6f 6e 20 | 69 6e 64 65 78 53 74 61 |dex..on |indexSta|
|00005500| 63 6b 0d 73 65 6e 64 20 | 22 69 6e 64 65 78 53 74 |ck.send |"indexSt|
|00005510| 61 63 6b 22 20 74 6f 20 | 62 67 20 62 74 6e 20 69 |ack" to |bg btn i|
|00005520| 64 20 32 31 20 6f 66 20 | 63 64 20 31 20 6f 66 20 |d 21 of |cd 1 of |
|00005530| 62 67 20 22 45 64 69 74 | 6f 72 22 0d 65 6e 64 20 |bg "Edit|or".end |
|00005540| 69 6e 64 65 78 53 74 61 | 63 6b 0d 0d 2d 2d 20 48 |indexSta|ck..-- H|
|00005550| 54 4d 4c 20 43 6f 64 69 | 6e 67 0d 0d 6f 6e 20 48 |TML Codi|ng..on H|
|00005560| 54 4d 4c 41 64 64 72 65 | 73 73 0d 69 66 20 6e 6f |TMLAddre|ss.if no|
|00005570| 53 65 6c 65 63 74 69 6f | 6e 28 29 20 74 68 65 6e |Selectio|n() then|
|00005580| 20 65 78 69 74 20 48 54 | 4d 4c 41 64 64 72 65 73 | exit HT|MLAddres|
|00005590| 73 20 65 6c 73 65 20 73 | 65 74 55 6e 64 6f 0d 70 |s else s|etUndo.p|
|000055a0| 75 74 20 74 68 65 20 73 | 65 6c 65 63 74 69 6f 6e |ut the s|election|
|000055b0| 20 69 6e 74 6f 20 74 68 | 65 54 65 78 74 0d 70 75 | into th|eText.pu|
|000055c0| 74 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |t the nu|mber of |
|000055d0| 6c 69 6e 65 73 20 6f 66 | 20 74 68 65 54 65 78 74 |lines of| theText|
|000055e0| 20 69 6e 74 6f 20 6e 0d | 72 65 70 65 61 74 20 77 | into n.|repeat w|
|000055f0| 69 74 68 20 69 20 3d 20 | 31 20 74 6f 20 6e 0d 70 |ith i = |1 to n.p|
|00005600| 75 74 20 22 3c 42 52 3e | 22 20 61 66 74 65 72 20 |ut "<BR>|" after |
|00005610| 6c 69 6e 65 20 69 20 6f | 66 20 74 68 65 54 65 78 |line i o|f theTex|
|00005620| 74 0d 65 6e 64 20 72 65 | 70 65 61 74 0d 69 66 20 |t.end re|peat.if |
|00005630| 6c 61 73 74 20 63 68 61 | 72 20 6f 66 20 74 68 65 |last cha|r of the|
|00005640| 54 65 78 74 20 ad 20 72 | 65 74 75 72 6e 20 74 68 |Text . r|eturn th|
|00005650| 65 6e 20 70 75 74 20 72 | 65 74 75 72 6e 20 61 66 |en put r|eturn af|
|00005660| 74 65 72 20 74 68 65 54 | 65 78 74 0d 70 75 74 20 |ter theT|ext.put |
|00005670| 22 3c 41 44 44 52 45 53 | 53 3e 22 26 72 65 74 75 |"<ADDRES|S>"&retu|
|00005680| 72 6e 26 74 68 65 54 65 | 78 74 26 22 3c 2f 41 44 |rn&theTe|xt&"</AD|
|00005690| 44 52 45 53 53 3e 22 20 | 69 6e 74 6f 20 74 68 65 |DRESS>" |into the|
|000056a0| 20 73 65 6c 65 63 74 69 | 6f 6e 0d 65 6e 64 20 48 | selecti|on.end H|
|000056b0| 54 4d 4c 41 64 64 72 65 | 73 73 0d 0d 6f 6e 20 48 |TMLAddre|ss..on H|
|000056c0| 54 4d 4c 20 69 2c 70 53 | 74 72 69 6e 67 0d 67 6c |TML i,pS|tring.gl|
|000056d0| 6f 62 61 6c 20 68 4e 75 | 6d 0d 70 75 74 20 74 68 |obal hNu|m.put th|
|000056e0| 65 20 73 65 6c 65 63 74 | 65 64 43 68 75 6e 6b 20 |e select|edChunk |
|000056f0| 69 6e 74 6f 20 74 68 65 | 43 68 75 6e 6b 0d 49 46 |into the|Chunk.IF|
|00005700| 20 22 66 69 65 6c 64 22 | 20 69 73 20 69 6e 20 74 | "field"| is in t|
|00005710| 68 65 43 68 75 6e 6b 20 | 74 68 65 6e 0d 73 65 6e |heChunk |then.sen|
|00005720| 64 20 73 65 74 55 6e 64 | 6f 20 74 6f 20 74 68 69 |d setUnd|o to thi|
|00005730| 73 20 63 64 0d 67 65 74 | 20 22 22 0d 69 66 20 69 |s cd.get| "".if i|
|00005740| 20 3d 20 22 48 6f 72 69 | 7a 6f 6e 74 61 6c 20 52 | = "Hori|zontal R|
|00005750| 75 6c 65 22 20 74 68 65 | 6e 20 67 65 74 20 22 2c |ule" the|n get ",|
|00005760| 3c 48 52 3e 2c 30 22 0d | 65 6c 73 65 20 69 66 20 |<HR>,0".|else if |
|00005770| 63 68 61 72 20 31 20 6f | 66 20 69 20 3d 20 22 48 |char 1 o|f i = "H|
|00005780| 22 20 74 68 65 6e 20 67 | 65 74 20 22 3c 48 22 26 |" then g|et "<H"&|
|00005790| 68 4e 75 6d 26 22 3e 2c | 3c 2f 48 22 26 68 4e 75 |hNum&">,|</H"&hNu|
|000057a0| 6d 26 22 3e 2c 34 22 0d | 65 6c 73 65 20 69 66 20 |m&">,4".|else if |
|000057b0| 69 20 3d 20 22 42 6f 6c | 64 22 20 74 68 65 6e 20 |i = "Bol|d" then |
|000057c0| 67 65 74 20 22 3c 42 3e | 2c 3c 2f 42 3e 2c 33 22 |get "<B>|,</B>,3"|
|000057d0| 0d 65 6c 73 65 20 69 66 | 20 69 20 3d 20 22 42 6c |.else if| i = "Bl|
|000057e0| 6f 63 6b 71 75 6f 74 65 | 22 20 74 68 65 6e 20 67 |ockquote|" then g|
|000057f0| 65 74 20 22 3c 42 4c 4f | 43 4b 51 55 4f 54 45 3e |et "<BLO|CKQUOTE>|
|00005800| 2c 3c 2f 42 4c 4f 43 4b | 51 55 4f 54 45 3e 2c 31 |,</BLOCK|QUOTE>,1|
|00005810| 32 22 0d 65 6c 73 65 20 | 69 66 20 69 20 3d 20 22 |2".else |if i = "|
|00005820| 43 69 74 61 74 69 6f 6e | 22 20 74 68 65 6e 20 67 |Citation|" then g|
|00005830| 65 74 20 22 3c 43 49 54 | 45 3e 2c 3c 2f 43 49 54 |et "<CIT|E>,</CIT|
|00005840| 45 3e 2c 36 22 0d 65 6c | 73 65 20 69 66 20 69 20 |E>,6".el|se if i |
|00005850| 3d 20 22 43 6f 6d 6d 65 | 6e 74 22 20 74 68 65 6e |= "Comme|nt" then|
|00005860| 0d 69 66 20 74 68 65 20 | 68 69 6c 69 74 65 20 6f |.if the |hilite o|
|00005870| 66 20 63 64 20 62 74 6e | 20 69 64 20 38 34 20 6f |f cd btn| id 84 o|
|00005880| 66 20 63 64 20 22 70 72 | 65 66 73 22 20 74 68 65 |f cd "pr|efs" the|
|00005890| 6e 20 67 65 74 20 22 3c | 21 2d 2d 20 2c 20 2d 2d |n get "<|!-- , --|
|000058a0| 3e 2c 35 22 0d 65 6c 73 | 65 20 67 65 74 20 22 3c |>,5".els|e get "<|
|000058b0| 21 2d 2d 20 2c 20 3e 2c | 35 22 0d 65 6c 73 65 20 |!-- , >,|5".else |
|000058c0| 69 66 20 69 20 3d 20 22 | 44 65 66 69 6e 69 74 69 |if i = "|Definiti|
|000058d0| 6f 6e 22 20 74 68 65 6e | 20 67 65 74 20 22 3c 44 |on" then| get "<D|
|000058e0| 46 4e 3e 2c 3c 2f 44 46 | 4e 3e 2c 35 22 0d 65 6c |FN>,</DF|N>,5".el|
|000058f0| 73 65 20 69 66 20 69 20 | 3d 20 22 45 6d 70 68 61 |se if i |= "Empha|
|00005900| 73 69 73 22 20 74 68 65 | 6e 20 67 65 74 20 22 3c |sis" the|n get "<|
|00005910| 45 4d 3e 2c 3c 2f 45 4d | 3e 2c 34 22 0d 65 6c 73 |EM>,</EM|>,4".els|
|00005920| 65 20 69 66 20 69 20 3d | 20 22 45 78 70 6f 72 74 |e if i =| "Export|
|00005930| 53 74 72 69 6e 67 22 20 | 74 68 65 6e 20 67 65 74 |String" |then get|
|00005940| 20 22 7b 22 26 70 53 74 | 72 69 6e 67 26 22 7d 22 | "{"&pSt|ring&"}"|
|00005950| 26 22 2c 2c 22 26 6c 65 | 6e 67 74 68 28 70 53 74 |&",,"&le|ngth(pSt|
|00005960| 72 69 6e 67 29 2b 32 0d | 65 6c 73 65 20 69 66 20 |ring)+2.|else if |
|00005970| 69 20 3d 20 22 46 6f 6f | 74 65 72 22 20 74 68 65 |i = "Foo|ter" the|
|00005980| 6e 20 67 65 74 20 66 6f | 6f 74 65 72 54 61 67 28 |n get fo|oterTag(|
|00005990| 29 26 22 2c 2c 22 26 6c | 65 6e 67 74 68 28 66 6f |)&",,"&l|ength(fo|
|000059a0| 6f 74 65 72 54 61 67 28 | 29 29 0d 65 6c 73 65 20 |oterTag(|)).else |
|000059b0| 69 66 20 69 20 3d 20 22 | 46 6f 72 6d 22 20 74 68 |if i = "|Form" th|
|000059c0| 65 6e 20 67 65 74 20 70 | 53 74 72 69 6e 67 26 22 |en get p|String&"|
|000059d0| 2c 3c 2f 46 4f 52 4d 3e | 2c 22 26 6c 65 6e 67 74 |,</FORM>|,"&lengt|
|000059e0| 68 28 70 53 74 72 69 6e | 67 29 0d 65 6c 73 65 20 |h(pStrin|g).else |
|000059f0| 69 66 20 69 20 3d 20 22 | 49 74 61 6c 69 63 22 20 |if i = "|Italic" |
|00005a00| 74 68 65 6e 20 67 65 74 | 20 22 3c 49 3e 2c 3c 2f |then get| "<I>,</|
|00005a10| 49 3e 2c 33 22 0d 65 6c | 73 65 20 69 66 20 69 20 |I>,3".el|se if i |
|00005a20| 3d 20 22 4b 65 79 62 6f | 61 72 64 22 20 74 68 65 |= "Keybo|ard" the|
|00005a30| 6e 20 67 65 74 20 22 3c | 4b 42 44 3e 2c 3c 2f 4b |n get "<|KBD>,</K|
|00005a40| 42 44 3e 2c 35 22 0d 65 | 6c 73 65 20 69 66 20 69 |BD>,5".e|lse if i|
|00005a50| 20 3d 20 22 49 53 49 4e | 44 45 58 22 20 74 68 65 | = "ISIN|DEX" the|
|00005a60| 6e 20 67 65 74 20 22 2c | 3c 49 53 49 4e 44 45 58 |n get ",|<ISINDEX|
|00005a70| 3e 2c 30 22 0d 65 6c 73 | 65 20 69 66 20 69 20 3d |>,0".els|e if i =|
|00005a80| 20 22 4c 69 73 74 69 6e | 67 22 20 74 68 65 6e 20 | "Listin|g" then |
|00005a90| 67 65 74 20 22 3c 4c 49 | 53 54 49 4e 47 3e 2c 3c |get "<LI|STING>,<|
|00005aa0| 2f 4c 49 53 54 49 4e 47 | 3e 2c 39 22 0d 65 6c 73 |/LISTING|>,9".els|
|00005ab0| 65 20 69 66 20 69 20 3d | 20 22 43 6f 64 65 22 20 |e if i =| "Code" |
|00005ac0| 74 68 65 6e 20 67 65 74 | 20 22 3c 43 4f 44 45 3e |then get| "<CODE>|
|00005ad0| 2c 3c 2f 43 4f 44 45 3e | 2c 36 22 0d 65 6c 73 65 |,</CODE>|,6".else|
|00005ae0| 20 69 66 20 69 20 3d 20 | 22 50 61 72 61 67 72 61 | if i = |"Paragra|
|00005af0| 70 68 32 22 20 74 68 65 | 6e 20 67 65 74 20 72 65 |ph2" the|n get re|
|00005b00| 74 75 72 6e 26 22 3c 50 | 3e 2c 3c 2f 50 3e 2c 34 |turn&"<P|>,</P>,4|
|00005b10| 22 0d 65 6c 73 65 20 69 | 66 20 69 20 3d 20 22 50 |".else i|f i = "P|
|00005b20| 61 72 61 67 72 61 70 68 | 22 20 74 68 65 6e 20 67 |aragraph|" then g|
|00005b30| 65 74 20 72 65 74 75 72 | 6e 26 22 3c 50 3e 2c 2c |et retur|n&"<P>,,|
|00005b40| 34 22 0d 65 6c 73 65 20 | 69 66 20 69 20 3d 20 22 |4".else |if i = "|
|00005b50| 53 61 6d 70 6c 65 22 20 | 74 68 65 6e 20 67 65 74 |Sample" |then get|
|00005b60| 20 22 3c 53 41 4d 50 3e | 2c 3c 2f 53 41 4d 50 3e | "<SAMP>|,</SAMP>|
|00005b70| 2c 36 22 0d 65 6c 73 65 | 20 69 66 20 69 20 3d 20 |,6".else| if i = |
|00005b80| 22 53 74 72 6f 6e 67 20 | 45 6d 70 68 61 73 69 73 |"Strong |Emphasis|
|00005b90| 22 20 74 68 65 6e 20 67 | 65 74 20 22 3c 53 54 52 |" then g|et "<STR|
|00005ba0| 4f 4e 47 3e 2c 3c 2f 53 | 54 52 4f 4e 47 3e 2c 38 |ONG>,</S|TRONG>,8|
|00005bb0| 22 0d 65 6c 73 65 20 69 | 66 20 69 20 3d 20 22 53 |".else i|f i = "S|
|00005bc0| 74 72 69 6b 65 54 68 72 | 75 22 20 74 68 65 6e 20 |trikeThr|u" then |
|00005bd0| 67 65 74 20 22 3c 53 3e | 2c 3c 2f 53 3e 2c 33 22 |get "<S>|,</S>,3"|
|00005be0| 0d 65 6c 73 65 20 69 66 | 20 69 20 3d 20 22 53 75 |.else if| i = "Su|
|00005bf0| 62 73 63 72 69 70 74 22 | 20 74 68 65 6e 20 67 65 |bscript"| then ge|
|00005c00| 74 20 22 3c 53 55 42 3e | 2c 3c 2f 53 55 42 3e 2c |t "<SUB>|,</SUB>,|
|00005c10| 35 22 0d 65 6c 73 65 20 | 69 66 20 69 20 3d 20 22 |5".else |if i = "|
|00005c20| 53 75 70 65 72 73 63 72 | 69 70 74 22 20 74 68 65 |Superscr|ipt" the|
|00005c30| 6e 20 67 65 74 20 22 3c | 53 55 50 3e 2c 3c 2f 53 |n get "<|SUP>,</S|
|00005c40| 55 50 3e 2c 35 22 0d 65 | 6c 73 65 20 69 66 20 69 |UP>,5".e|lse if i|
|00005c50| 20 3d 20 22 54 79 70 65 | 77 72 69 74 65 72 22 20 | = "Type|writer" |
|00005c60| 74 68 65 6e 20 67 65 74 | 20 22 3c 54 54 3e 2c 3c |then get| "<TT>,<|
|00005c70| 2f 54 54 3e 2c 34 22 0d | 65 6c 73 65 20 69 66 20 |/TT>,4".|else if |
|00005c80| 69 20 3d 20 22 50 72 65 | 66 6f 72 6d 61 74 74 65 |i = "Pre|formatte|
|00005c90| 64 22 20 74 68 65 6e 20 | 67 65 74 20 22 3c 50 52 |d" then |get "<PR|
|00005ca0| 45 3e 2c 3c 2f 50 52 45 | 3e 2c 35 22 0d 65 6c 73 |E>,</PRE|>,5".els|
|00005cb0| 65 20 69 66 20 69 20 3d | 20 22 54 61 67 22 20 74 |e if i =| "Tag" t|
|00005cc0| 68 65 6e 20 67 65 74 20 | 70 53 74 72 69 6e 67 26 |hen get |pString&|
|00005cd0| 22 2c 2c 22 26 6c 65 6e | 67 74 68 28 70 53 74 72 |",,"&len|gth(pStr|
|00005ce0| 69 6e 67 29 20 2d 2d 20 | 67 65 6e 65 72 69 63 20 |ing) -- |generic |
|00005cf0| 73 69 6e 67 6c 65 2d 65 | 6e 64 65 64 20 74 61 67 |single-e|nded tag|
|00005d00| 0d 65 6c 73 65 20 69 66 | 20 69 20 3d 20 22 54 69 |.else if| i = "Ti|
|00005d10| 74 6c 65 22 20 74 68 65 | 6e 20 67 65 74 20 22 3c |tle" the|n get "<|
|00005d20| 54 49 54 4c 45 3e 2c 3c | 2f 54 49 54 4c 45 3e 2c |TITLE>,<|/TITLE>,|
|00005d30| 37 22 0d 65 6c 73 65 20 | 69 66 20 69 20 3d 20 22 |7".else |if i = "|
|00005d40| 55 6e 64 65 72 6c 69 6e | 65 22 20 74 68 65 6e 20 |Underlin|e" then |
|00005d50| 67 65 74 20 22 3c 55 3e | 2c 3c 2f 55 3e 2c 33 22 |get "<U>|,</U>,3"|
|00005d60| 0d 65 6c 73 65 20 69 66 | 20 69 20 3d 20 22 56 61 |.else if| i = "Va|
|00005d70| 72 69 61 62 6c 65 22 20 | 74 68 65 6e 20 67 65 74 |riable" |then get|
|00005d80| 20 22 3c 56 41 52 3e 2c | 3c 2f 56 41 52 3e 2c 35 | "<VAR>,|</VAR>,5|
|00005d90| 22 0d 69 66 20 69 74 20 | ad 20 22 22 20 74 68 65 |".if it |. "" the|
|00005da0| 6e 20 2d 2d 20 66 6f 75 | 6e 64 20 63 6f 64 65 2c |n -- fou|nd code,|
|00005db0| 20 73 6f 20 6d 6f 64 69 | 66 79 20 74 65 78 74 3a | so modi|fy text:|
|00005dc0| 0d 70 75 74 20 69 74 65 | 6d 20 31 20 6f 66 20 69 |.put ite|m 1 of i|
|00005dd0| 74 20 62 65 66 6f 72 65 | 20 74 68 65 20 73 65 6c |t before| the sel|
|00005de0| 65 63 74 69 6f 6e 0d 70 | 75 74 20 69 74 65 6d 20 |ection.p|ut item |
|00005df0| 32 20 6f 66 20 69 74 20 | 61 66 74 65 72 20 74 68 |2 of it |after th|
|00005e00| 65 20 73 65 6c 65 63 74 | 69 6f 6e 0d 73 65 74 49 |e select|ion.setI|
|00005e10| 6e 66 6f 54 65 78 74 0d | 69 66 20 28 74 68 65 20 |nfoText.|if (the |
|00005e20| 68 69 6c 69 74 65 20 6f | 66 20 63 64 20 62 74 6e |hilite o|f cd btn|
|00005e30| 20 69 64 20 34 32 20 6f | 66 20 63 64 20 22 70 72 | id 42 o|f cd "pr|
|00005e40| 65 66 73 22 29 20 74 68 | 65 6e 20 2d 2d 20 73 74 |efs") th|en -- st|
|00005e50| 61 79 20 73 65 6c 65 63 | 74 65 64 0d 61 64 64 20 |ay selec|ted.add |
|00005e60| 69 74 65 6d 20 33 20 6f | 66 20 69 74 20 74 6f 20 |item 3 o|f it to |
|00005e70| 77 6f 72 64 20 32 20 6f | 66 20 74 68 65 43 68 75 |word 2 o|f theChu|
|00005e80| 6e 6b 0d 61 64 64 20 69 | 74 65 6d 20 33 20 6f 66 |nk.add i|tem 3 of|
|00005e90| 20 69 74 20 74 6f 20 77 | 6f 72 64 20 34 20 6f 66 | it to w|ord 4 of|
|00005ea0| 20 74 68 65 43 68 75 6e | 6b 0d 73 65 6c 65 63 74 | theChun|k.select|
|00005eb0| 20 74 68 65 43 68 75 6e | 6b 0d 65 6e 64 20 69 66 | theChun|k.end if|
|00005ec0| 0d 65 6e 64 20 69 66 0d | 45 4c 53 45 20 61 6e 73 |.end if.|ELSE ans|
|00005ed0| 77 65 72 20 22 59 6f 75 | 20 6d 75 73 74 20 73 65 |wer "You| must se|
|00005ee0| 6c 65 63 74 20 73 6f 6d | 65 20 74 65 78 74 20 6f |lect som|e text o|
|00005ef0| 72 20 70 6c 61 63 65 20 | 74 68 65 20 69 6e 73 65 |r place |the inse|
|00005f00| 72 74 69 6f 6e 20 70 6f | 69 6e 74 20 69 6e 74 6f |rtion po|int into|
|00005f10| 20 61 6e 20 65 64 69 74 | 6f 72 20 66 69 65 6c 64 | an edit|or field|
|00005f20| 20 66 6f 72 20 74 68 69 | 73 20 66 75 6e 63 74 69 | for thi|s functi|
|00005f30| 6f 6e 20 74 6f 20 77 6f | 72 6b 2e 22 20 77 69 74 |on to wo|rk." wit|
|00005f40| 68 20 22 43 61 6e 63 65 | 6c 22 0d 65 6e 64 20 48 |h "Cance|l".end H|
|00005f50| 54 4d 4c 0d 0d 6f 6e 20 | 48 54 4d 4c 47 6c 6f 73 |TML..on |HTMLGlos|
|00005f60| 73 61 72 79 0d 69 66 20 | 6e 6f 53 65 6c 65 63 74 |sary.if |noSelect|
|00005f70| 69 6f 6e 28 29 20 74 68 | 65 6e 20 65 78 69 74 20 |ion() th|en exit |
|00005f80| 48 54 4d 4c 47 6c 6f 73 | 73 61 72 79 20 65 6c 73 |HTMLGlos|sary els|
|00005f90| 65 20 73 65 74 55 6e 64 | 6f 0d 70 75 74 20 74 68 |e setUnd|o.put th|
|00005fa0| 65 20 73 65 6c 65 63 74 | 69 6f 6e 20 69 6e 74 6f |e select|ion into|
|00005fb0| 20 74 68 65 54 65 78 74 | 0d 70 75 74 20 74 68 65 | theText|.put the|
|00005fc0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 6c 69 6e 65 73 | number |of lines|
|00005fd0| 20 6f 66 20 74 68 65 54 | 65 78 74 20 69 6e 74 6f | of theT|ext into|
|00005fe0| 20 6e 0d 69 66 20 6e 20 | 6d 6f 64 20 32 20 ad 20 | n.if n |mod 2 . |
|00005ff0| 30 20 74 68 65 6e 0d 70 | 72 6f 63 45 72 72 6f 72 |0 then.p|rocError|
|00006000| 20 22 48 54 4d 4c 20 45 | 52 52 4f 52 3a 22 26 72 | "HTML E|RROR:"&r|
|00006010| 65 74 75 72 6e 26 22 54 | 68 65 20 74 65 78 74 20 |eturn&"T|he text |
|00006020| 73 65 6c 65 63 74 69 6f | 6e 20 66 6f 72 20 61 6e |selectio|n for an|
|00006030| 20 48 54 4d 4c 20 47 6c | 6f 73 73 61 72 79 20 6d | HTML Gl|ossary m|
|00006040| 75 73 74 20 62 65 20 61 | 6e 20 65 76 65 6e 20 6e |ust be a|n even n|
|00006050| 75 6d 62 65 72 20 22 26 | c2 0d 22 6f 66 20 6c 69 |umber "&|.."of li|
|00006060| 6e 65 73 2e 20 54 68 65 | 20 66 69 72 73 74 20 6c |nes. The| first l|
|00006070| 69 6e 65 20 6f 66 20 65 | 61 63 68 20 70 61 69 72 |ine of e|ach pair|
|00006080| 20 69 73 20 74 68 65 20 | 74 65 72 6d 2c 20 74 68 | is the |term, th|
|00006090| 65 20 73 65 63 6f 6e 64 | 20 6c 69 6e 65 20 69 73 |e second| line is|
|000060a0| 20 74 68 65 20 64 65 66 | 69 6e 69 74 69 6f 6e 2e | the def|inition.|
|000060b0| 22 0d 65 6c 73 65 0d 72 | 65 70 65 61 74 20 77 69 |".else.r|epeat wi|
|000060c0| 74 68 20 69 20 3d 20 31 | 20 74 6f 20 6e 0d 69 66 |th i = 1| to n.if|
|000060d0| 20 69 20 6d 6f 64 20 32 | 20 69 73 20 30 20 74 68 | i mod 2| is 0 th|
|000060e0| 65 6e 20 6e 65 78 74 20 | 72 65 70 65 61 74 0d 70 |en next |repeat.p|
|000060f0| 75 74 20 22 3c 44 54 3e | 22 20 62 65 66 6f 72 65 |ut "<DT>|" before|
|00006100| 20 6c 69 6e 65 20 69 20 | 6f 66 20 74 68 65 54 65 | line i |of theTe|
|00006110| 78 74 0d 65 6e 64 20 72 | 65 70 65 61 74 0d 72 65 |xt.end r|epeat.re|
|00006120| 70 65 61 74 20 77 69 74 | 68 20 69 20 3d 20 31 20 |peat wit|h i = 1 |
|00006130| 74 6f 20 6e 0d 69 66 20 | 69 20 6d 6f 64 20 32 20 |to n.if |i mod 2 |
|00006140| 69 73 20 31 20 74 68 65 | 6e 20 6e 65 78 74 20 72 |is 1 the|n next r|
|00006150| 65 70 65 61 74 0d 70 75 | 74 20 22 3c 44 44 3e 22 |epeat.pu|t "<DD>"|
|00006160| 20 62 65 66 6f 72 65 20 | 6c 69 6e 65 20 69 20 6f | before |line i o|
|00006170| 66 20 74 68 65 54 65 78 | 74 0d 65 6e 64 20 72 65 |f theTex|t.end re|
|00006180| 70 65 61 74 0d 69 66 20 | 6c 61 73 74 20 63 68 61 |peat.if |last cha|
|00006190| 72 20 6f 66 20 74 68 65 | 54 65 78 74 20 ad 20 72 |r of the|Text . r|
|000061a0| 65 74 75 72 6e 20 74 68 | 65 6e 20 70 75 74 20 72 |eturn th|en put r|
|000061b0| 65 74 75 72 6e 20 61 66 | 74 65 72 20 74 68 65 54 |eturn af|ter theT|
|000061c0| 65 78 74 0d 70 75 74 20 | 22 3c 44 4c 3e 22 26 72 |ext.put |"<DL>"&r|
|000061d0| 65 74 75 72 6e 26 74 68 | 65 54 65 78 74 26 22 3c |eturn&th|eText&"<|
|000061e0| 2f 44 4c 3e 22 26 72 65 | 74 75 72 6e 20 69 6e 74 |/DL>"&re|turn int|
|000061f0| 6f 20 74 68 65 20 73 65 | 6c 65 63 74 69 6f 6e 0d |o the se|lection.|
|00006200| 65 6e 64 20 69 66 0d 65 | 6e 64 20 48 54 4d 4c 47 |end if.e|nd HTMLG|
|00006210| 6c 6f 73 73 61 72 79 0d | 0d 6f 6e 20 48 54 4d 4c |lossary.|.on HTML|
|00006220| 4c 69 73 74 20 74 61 67 | 0d 73 65 74 55 6e 64 6f |List tag|.setUndo|
|00006230| 0d 70 75 74 20 74 68 65 | 20 73 65 6c 65 63 74 69 |.put the| selecti|
|00006240| 6f 6e 20 69 6e 74 6f 20 | 74 68 65 54 65 78 74 0d |on into |theText.|
|00006250| 72 65 70 65 61 74 20 77 | 69 74 68 20 69 20 3d 20 |repeat w|ith i = |
|00006260| 31 20 74 6f 20 6e 75 6d | 62 65 72 28 6c 69 6e 65 |1 to num|ber(line|
|00006270| 73 20 6f 66 20 74 68 65 | 54 65 78 74 29 0d 70 75 |s of the|Text).pu|
|00006280| 74 20 22 3c 4c 49 3e 22 | 20 62 65 66 6f 72 65 20 |t "<LI>"| before |
|00006290| 6c 69 6e 65 20 69 20 6f | 66 20 74 68 65 54 65 78 |line i o|f theTex|
|000062a0| 74 0d 65 6e 64 20 72 65 | 70 65 61 74 0d 69 66 20 |t.end re|peat.if |
|000062b0| 6c 61 73 74 20 63 68 61 | 72 20 6f 66 20 74 68 65 |last cha|r of the|
|000062c0| 54 65 78 74 20 ad 20 72 | 65 74 75 72 6e 20 74 68 |Text . r|eturn th|
|000062d0| 65 6e 20 70 75 74 20 72 | 65 74 75 72 6e 20 61 66 |en put r|eturn af|
|000062e0| 74 65 72 20 74 68 65 54 | 65 78 74 0d 70 75 74 20 |ter theT|ext.put |
|000062f0| 22 3c 22 26 74 61 67 26 | 22 3e 22 26 72 65 74 75 |"<"&tag&|">"&retu|
|00006300| 72 6e 26 74 68 65 54 65 | 78 74 26 22 3c 2f 22 26 |rn&theTe|xt&"</"&|
|00006310| 74 61 67 26 22 3e 22 20 | 69 6e 74 6f 20 74 68 65 |tag&">" |into the|
|00006320| 20 73 65 6c 65 63 74 69 | 6f 6e 0d 65 6e 64 20 48 | selecti|on.end H|
|00006330| 54 4d 4c 4c 69 73 74 0d | 0d 6f 6e 20 63 6f 6e 76 |TMLList.|.on conv|
|00006340| 65 72 74 50 61 72 61 67 | 72 61 70 68 0d 69 66 20 |ertParag|raph.if |
|00006350| 74 68 65 20 68 69 6c 69 | 74 65 20 6f 66 20 63 64 |the hili|te of cd|
|00006360| 20 62 74 6e 20 69 64 20 | 38 30 20 6f 66 20 63 64 | btn id |80 of cd|
|00006370| 20 22 70 72 65 66 73 22 | 20 74 68 65 6e 20 70 75 | "prefs"| then pu|
|00006380| 74 20 22 3c 2f 50 3e 22 | 20 69 6e 74 6f 20 63 54 |t "</P>"| into cT|
|00006390| 61 67 20 65 6c 73 65 20 | 70 75 74 20 22 22 20 69 |ag else |put "" i|
|000063a0| 6e 74 6f 20 63 54 61 67 | 0d 69 66 20 6e 6f 53 65 |nto cTag|.if noSe|
|000063b0| 6c 65 63 74 69 6f 6e 28 | 29 20 74 68 65 6e 20 65 |lection(|) then e|
|000063c0| 78 69 74 20 63 6f 6e 76 | 65 72 74 50 61 72 61 67 |xit conv|ertParag|
|000063d0| 72 61 70 68 20 65 6c 73 | 65 20 73 65 74 55 6e 64 |raph els|e setUnd|
|000063e0| 6f 0d 70 75 74 20 74 68 | 65 20 73 65 6c 65 63 74 |o.put th|e select|
|000063f0| 69 6f 6e 26 72 65 74 75 | 72 6e 26 72 65 74 75 72 |ion&retu|rn&retur|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.